POSIX allows getpwnam_r and getpwuid_r to return 0 (success) even if the
authorRuss Allbery <rra@stanford.edu>
Tue, 13 Jun 2006 15:18:04 +0000 (15:18 +0000)
committerRuss Allbery <rra@stanford.edu>
Tue, 13 Jun 2006 15:18:04 +0000 (15:18 +0000)
commit44156f006b0b804604a31571a4df7ae86c9cc789
tree44f9a6a1b4fbd5756f37217efbafb4d42521876f
parent17ca5b3402fe42c3ff5b2d928cc685fae43bd0d2
POSIX allows getpwnam_r and getpwuid_r to return 0 (success) even if the
username or UID could not be found, in which case OUT will be set to
NULL.  Elsewhere, code assumes that if k5_getpwnam_r or k5_getpwuid_r
returns 0, OUT is non-NULL.  Check whether OUT is NULL and adjust the
return value accordingly in the k5_getpw{nam,uid}_r wrappers.

Ticket: 3490
Version_Reported: 1.4.3
Component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18121 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-platform.h