Commit Diff
Diff:
695df6532ec717e5571e1ddc2c88a8c968603c5a
e7e47e77a3886c258368a14a8c0bb393280aac64
Commit:
e7e47e77a3886c258368a14a8c0bb393280aac64
Tree:
31605e02fe06a94e09cb53949d6bcaad9aad9367
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Fri Jun 1 22:32:19 2012 UTC
Message:
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
blob - 4d778719a2c8623c60570e9c839877595b38e0a2
blob + 09f726ca2bf91016d54a8d2b2c7c10029943fa68
--- src/ngircd/conn.c
+++ 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);
IRCNow