]> arthur.barton.de Git - ngircd-alex.git/commitdiff
NoticeAuth: Fix test if IDENT reply has been invalid
authorAlexander Barton <alex@barton.de>
Fri, 1 Jun 2012 22:32:19 +0000 (00:32 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 1 Jun 2012 22:32:19 +0000 (00:32 +0200)
This fixes

 conn.c: In function ‘cb_Read_Resolver_Result’:
 conn.c:2252: warning: comparison between pointer and integer

src/ngircd/conn.c

index 4d778719a2c8623c60570e9c839877595b38e0a2..09f726ca2bf91016d54a8d2b2c7c10029943fa68 100644 (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",
                        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);
                        }
                } else {
                        Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);