From 5a6ddae7324ec3e753aba48e9244ee138eaf8da4 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 4 Apr 2021 17:55:34 -0600 Subject: * http debug support sets debug flag before checking if stream is open and might be closed. --- imap/src/c-client/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imap') diff --git a/imap/src/c-client/http.c b/imap/src/c-client/http.c index cb34f896..82824cc3 100644 --- a/imap/src/c-client/http.c +++ b/imap/src/c-client/http.c @@ -950,11 +950,11 @@ http_open (unsigned char *url) stream->netstream = net_open (&mb, NIL, mb.port ? mb.port : HTTPTCPPORT, (NETDRIVER *) mail_parameters (NIL,GET_SSLDRIVER,NIL), "*https", mb.port ? mb.port : HTTPSSLPORT); + stream->debug = http_debug; if(!stream->netstream){ http_close(stream); stream = NIL; } - stream->debug = http_debug; return stream; } -- cgit v1.2.3-70-g09d2