Return errno not retval from getpeername failure
authorSam Hartman <hartmans@mit.edu>
Tue, 17 Sep 2002 20:08:12 +0000 (20:08 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 17 Sep 2002 20:08:12 +0000 (20:08 +0000)
ticket: 1164

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14871 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/genaddrs.c

index 5845eafaced9e903cb4d8404e9d251c3e0941e78..2b21c9b3030add093926352f6449c8fa7400e4a1 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-17  Sam Hartman  <hartmans@mit.edu>
+
+       * genaddrs.c (krb5_auth_con_genaddrs): Return errno if getpeername fails
+
 2002-09-14  Ken Raeburn  <raeburn@mit.edu>
 
        * 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  <raeburn@mit.edu>
 
        * accessor.c, an_to_ln.c, c_ustime.c, ccdefname.c, changepw.c,
index b85d9d8e5aa6de89359fe7615afc9d7205b4ae56..919358a112b71403d173003e9c144cef3b2e6aae 100644 (file)
@@ -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;