summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-04 17:55:34 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-04 17:55:34 -0600
commit5a6ddae7324ec3e753aba48e9244ee138eaf8da4 (patch)
tree9c84f90ddc8223dfa43d2418ea68bae59742301d /imap
parent20a011de7f4e60e2dc1498a37c8829fdc207902b (diff)
downloadalpine-5a6ddae7324ec3e753aba48e9244ee138eaf8da4.tar.xz
* http debug support sets debug flag before checking if stream is open and might
be closed.
Diffstat (limited to 'imap')
-rw-r--r--imap/src/c-client/http.c2
1 files changed, 1 insertions, 1 deletions
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;
}