diff options
Diffstat (limited to 'src/sm_genid.c')
-rw-r--r-- | src/sm_genid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sm_genid.c b/src/sm_genid.c index 8771d07..67b3317 100644 --- a/src/sm_genid.c +++ b/src/sm_genid.c @@ -136,7 +136,7 @@ SmsGenerateClientID (smsConn) struct in_addr *haddr = NULL; #if defined(IPv6) && defined(AF_INET6) struct addrinfo *ai, *first_ai; - if (getaddrinfo(hostname,NULL,NULL,&ai) == 0) + if (getaddrinfo(hostname,NULL,NULL,&ai) != 0) return NULL; for (first_ai = ai; ai != NULL; ai = ai->ai_next) { |