Introduction
Introduction Statistics Contact Development Disclaimer Help
oops, unguarded ssl stuff segfaults - irc - Unnamed repository; edit this file …
git clone git://vernunftzentrum.de/irc.git
Log
Files
Refs
README
---
commit baa319ce6d7db30a166843fe1687cd0660d08f8b
parent 758f7a193ec87514576ec5d427724cd9e56dd0b2
Author: Quentin Carbonneaux <[email protected]>
Date: Wed, 18 Jan 2017 17:53:10 -0500
oops, unguarded ssl stuff segfaults
Diffstat:
irc.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/irc.c b/irc.c
@@ -869,10 +869,13 @@ main(int argc, char *argv[])
wrefresh(scr.iw);
}
}
- SSL_shutdown(srv.ssl);
- SSL_free(srv.ssl);
- close(srv.fd);
- SSL_CTX_free(srv.ctx);
+ if (ssl) {
+ SSL_shutdown(srv.ssl);
+ SSL_free(srv.ssl);
+ close(srv.fd);
+ SSL_CTX_free(srv.ctx);
+ } else
+ close(srv.fd);
while (nch--)
free(chl[nch].buf);
treset();
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.