*sigh*
authorKen Raeburn <raeburn@mit.edu>
Wed, 21 Jun 2006 00:31:19 +0000 (00:31 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 21 Jun 2006 00:31:19 +0000 (00:31 +0000)
Stupid typo in last change.

ticket: 2759

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

src/util/support/fake-addrinfo.c

index cdc2fdd04850cb7c2654fc0142338d565047cfc8..eba4c74b604ed9638fc9cc00ad35208d9c4559b5 100644 (file)
@@ -203,9 +203,9 @@ typedef struct {
        struct hostent *my_hp = NULL;                                   \
        int my_h_err, my_ret;                                           \
        my_ret = gethostbyname_r((NAME), &TMP.ent,                      \
-                                TMP.buf, sizeof (TMP.buf), &TMP.hp,    \
+                                TMP.buf, sizeof (TMP.buf), &my_hp,     \
                                 &my_h_err);                            \
-       (HP) = (((my_ret != 0) || (TMP.hp != &TMP.ent))                 \
+       (HP) = (((my_ret != 0) || (my_hp != &TMP.ent))                  \
                ? 0                                                     \
                : &TMP.ent);                                            \
        (ERR) = my_h_err;                                               \
@@ -217,7 +217,7 @@ typedef struct {
        my_ret = gethostbyaddr_r((ADDR), (ADDRLEN), (FAMILY), &TMP.ent, \
                                 TMP.buf, sizeof (TMP.buf), &my_hp,     \
                                 &my_h_err);                            \
-       (HP) = (((my_ret != 0) || (TMP.hp != &TMP.ent))                 \
+       (HP) = (((my_ret != 0) || (my_hp != &TMP.ent))                  \
                ? 0                                                     \
                : &TMP.ent);                                            \
        (ERR) = my_h_err;                                               \