repo: ngircd action: commit revision: path_from: revision_from: e7e47e77a3886c258368a14a8c0bb393280aac64: path_to: revision_to:
commit e7e47e77a3886c258368a14a8c0bb393280aac64 Author: Alexander BartonDate: Sat Jun 2 00:32:19 2012 +0200 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 diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
--- 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);
-----END OF PAGE-----