From bc1f1a620ddaa64f5b714df0d0dc27b923c2a438 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sat, 16 Nov 2013 22:58:06 -0700 Subject: * Crash when tcp connection to NNTP server was lost after connection had been established, but lost immediately afterwards. * Small fixes to pine.hlp (alignment issues) * Add server name to debug in pine_tcptimeout function. --- imap/src/c-client/nntp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'imap/src') diff --git a/imap/src/c-client/nntp.c b/imap/src/c-client/nntp.c index cee546d1..1607db81 100644 --- a/imap/src/c-client/nntp.c +++ b/imap/src/c-client/nntp.c @@ -1750,6 +1750,7 @@ SENDSTREAM *nntp_open_full (NETDRIVER *dv,char **hostlist,char *service, mm_log ("Unable to negotiate TLS with this server",ERROR); return NIL; } + if(stream && !stream->netstream) stream = nntp_close(stream); if (stream) { /* have a session? */ if (mb.user[0]) { /* yes, have user name? */ if ((long) mail_parameters (NIL,GET_TRUSTDNS,NIL)) { -- cgit v1.2.3-54-g00ecf