summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/support/fake-addrinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/support/fake-addrinfo.c b/src/util/support/fake-addrinfo.c
index cdc2fdd048..eba4c74b60 100644
--- a/src/util/support/fake-addrinfo.c
+++ b/src/util/support/fake-addrinfo.c
@@ -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; \