summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-06-02 00:32:19 +0200
committerAlexander Barton <alex@barton.de>2012-06-02 00:32:19 +0200
commite7e47e77a3886c258368a14a8c0bb393280aac64 (patch)
tree31605e02fe06a94e09cb53949d6bcaad9aad9367 /src
parent695df6532ec717e5571e1ddc2c88a8c968603c5a (diff)
downloadngircd-e7e47e77a3886c258368a14a8c0bb393280aac64.tar.gz
ngircd-e7e47e77a3886c258368a14a8c0bb393280aac64.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 4d778719..09f726ca 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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);