diff --git a/proxytunnel.c b/proxytunnel.c index d669ee7..c76a2cc 100644 --- a/proxytunnel.c +++ b/proxytunnel.c @@ -154,9 +154,15 @@ void closeall() { * Close all streams */ if (stunnel) + { stream_close(stunnel); + stunnel = NULL; + } if (std) + { stream_close(std); + std = NULL; + } } /*