Update of /cvsroot/mahogany/M/lib/imap/src/c-client
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9104/lib/imap/src/c-client

Modified Files:
        nntp.c 
Log Message:
don't crash if opening NNTP connection failed

Index: nntp.c
===================================================================
RCS file: /cvsroot/mahogany/M/lib/imap/src/c-client/nntp.c,v
retrieving revision 1.1.1.4
retrieving revision 1.2
diff -b -u -2 -r1.1.1.4 -r1.2
--- nntp.c      3 Sep 2004 14:02:47 -0000       1.1.1.4
+++ nntp.c      4 Jun 2006 14:47:32 -0000       1.2
@@ -1723,5 +1723,5 @@
   }
                                /* authenticate if no-post and not readonly */
-  else if (!(NNTP.post || (options & NOP_READONLY) ||
+  else if (stream && !(NNTP.post || (options & NOP_READONLY) ||
             nntp_send_auth (stream))) stream = nntp_close (stream);
 



_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to