* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
authorKen Raeburn <raeburn@mit.edu>
Fri, 26 Apr 2002 01:27:26 +0000 (01:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 26 Apr 2002 01:27:26 +0000 (01:27 +0000)
[GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return value.

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

src/include/ChangeLog
src/include/fake-addrinfo.h

index 76dc404bdebc20d4d49e44be7e9ac7da2204eac2..1abad7c8081fc846845f0ce673aaa9b070ef5cbc 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-25  Ken Raeburn  <raeburn@mit.edu>
+
+       * fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
+       [GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return
+       value.
+
 2002-04-24  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: If the return type for gethostbyname_r can't be
index 64eb2536d37139d05c339fad05a6d3bfd0dc5812..d555726c828c526608db956697b82c3a948d71c7 100644 (file)
        (HP) = (gethostbyname_r((NAME), &my_h_ent,                      \
                                my_h_buf, sizeof (my_h_buf), &my_hp,    \
                                &my_h_err)                              \
-               ? &my_h_ent                                             \
-               : 0);                                                   \
+               ? 0                                                     \
+               : &my_h_ent);                                           \
        (ERR) = my_h_err;                                               \
     }
 #define GET_HOST_BY_ADDR(ADDR, ADDRLEN, FAMILY, HP, ERR) \
        (HP) = (gethostbyaddr_r((ADDR), (ADDRLEN), (FAMILY), &my_h_ent, \
                                my_h_buf, sizeof (my_h_buf), &my_hp,    \
                                &my_h_err)                              \
-               ? &my_h_ent                                             \
-               : 0);                                                   \
+               ? 0                                                     \
+               : &my_h_ent);                                           \
        (ERR) = my_h_err;                                               \
     }
 #else