From: Sam Hartman Date: Tue, 17 Sep 2002 20:08:12 +0000 (+0000) Subject: Return errno not retval from getpeername failure X-Git-Tag: krb5-1.3-alpha1~380 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b279d10d4b4ef1063c5c6c7e5eb9d5526a011f24;p=krb5.git Return errno not retval from getpeername failure ticket: 1164 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14871 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 5845eafac..2b21c9b30 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,7 @@ +2002-09-17 Sam Hartman + + * genaddrs.c (krb5_auth_con_genaddrs): Return errno if getpeername fails + 2002-09-14 Ken Raeburn * sendto_kdc.c (service_fds): Fix bug in last change. @@ -31,6 +35,7 @@ * t_locate_kdc.c (main): Add new argument -m for looking up master KDC addresses. + 2002-09-03 Ken Raeburn * accessor.c, an_to_ln.c, c_ustime.c, ccdefname.c, changepw.c, diff --git a/src/lib/krb5/os/genaddrs.c b/src/lib/krb5/os/genaddrs.c index b85d9d8e5..919358a11 100644 --- a/src/lib/krb5/os/genaddrs.c +++ b/src/lib/krb5/os/genaddrs.c @@ -120,7 +120,7 @@ krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, int (flags & KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR)) { if ((retval = getpeername(fd, (GETPEERNAME_ARG2_TYPE *) &rsaddr, &ssize))) - return retval; + return errno; if (cvtaddr (&rsaddr, &raddrs)) { raddr = &raddrs.addr;