From b279d10d4b4ef1063c5c6c7e5eb9d5526a011f24 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 17 Sep 2002 20:08:12 +0000 Subject: [PATCH] Return errno not retval from getpeername failure ticket: 1164 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14871 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/genaddrs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.26.2