]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix uncommon null dereference in PKINIT client 291/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 3 Jul 2015 23:34:46 +0000 (19:34 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 6 Jul 2015 19:55:59 +0000 (15:55 -0400)
commit47b37b9e13ca1456ba6710f31bc41012d050dd07
treed6ea67647c498144626f1cdb6c4b59d08d84bd4e
parenta99e5565e99b83a86002332e39938aa6bed6a26a
Fix uncommon null dereference in PKINIT client

crypto_retrieve_cert_sans() is allowed to set its princs output to
NULL, although the OpenSSL implementation rarely does.  Fix the
TRACE_PKINIT_CLIENT_SAN_KDCCERT_PRINC for loop to allow this like other
parts of the function do, and also get rid of the unnecessary princptr
variable by using an integer index like other parts of the function.

Based on a patch from Daniel Deptula.

ticket: 8214 (new)
target_version: 1.13.3
tags: pullup
src/plugins/preauth/pkinit/pkinit_clnt.c