1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Fix crash with SSL connection to IRC server if option ssl_cert is set (bug #28752)

This commit is contained in:
Sebastien Helleu
2010-01-29 12:41:05 +01:00
parent e23aed51a1
commit 930285e489
3 changed files with 21 additions and 12 deletions
+2
View File
@@ -121,6 +121,8 @@ struct t_irc_server
int ssl_connected; /* = 1 if connected with SSL */
#ifdef HAVE_GNUTLS
gnutls_session_t gnutls_sess; /* gnutls session (only if SSL is used) */
gnutls_x509_crt_t tls_cert; /* certificate used if ssl_cert is set */
gnutls_x509_privkey_t tls_cert_key; /* key used if ssl_cert is set */
#endif
char *unterminated_message; /* beginning of a message in input buf */
int nicks_count; /* number of nicknames */