diff --git a/src/s_conf.c b/src/s_conf.c index 7f2b7e719..4ddb112f5 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -3966,7 +3966,7 @@ int AllowClient(aClient *cptr, struct hostent *hp, char *sockhost) /* if (index(uhost, '@')) now flag based -- codemastr */ if (!aconf->flags.noident) cptr->flags |= FLAGS_DOID; - if (!aconf->flags.useip && hp->h_name) + if (!aconf->flags.useip && hp) (void)strncpy(uhost, fullname, sizeof(uhost)); else (void)strncpy(uhost, sockhost, sizeof(uhost));