1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-19 03:52:52 +00:00

NoticeAuth: Fix test if IDENT reply has been invalid

This fixes

 conn.c: In function ‘cb_Read_Resolver_Result’:
 conn.c:2252: warning: comparison between pointer and integer
This commit is contained in:
Alexander Barton 2012-06-02 00:32:19 +02:00
parent 695df6532e
commit e7e47e77a3

View File

@ -2249,7 +2249,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
if (Conf_NoticeAuth) {
(void)Conn_WriteStr(i,
"NOTICE AUTH :*** Got %sident response",
*ptr == NULL ? "" : "invalid ");
*ptr ? "invalid " : "");
}
} else {
Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);