removed local account without SMTP server - added option to use mail command
[claws.git] / src / news.c
index c36571c4aef390806a8451153b24bbb164b7b720..473d73330c239413844e76b92349eced5cffe7ce 100644 (file)
@@ -83,7 +83,7 @@ static Session *news_session_new(const gchar *server, gushort port,
                nntp_sock = nntp_open_auth(server, port, buf, userid, passwd);
        else
                nntp_sock = nntp_open(server, port, buf);
-       if (nntp_sock < 0)
+       if (nntp_sock == NULL)
                return NULL;
 
        session = g_new(NNTPSession, 1);