summaryrefslogtreecommitdiff
path: root/vchat-ssl.c
diff options
context:
space:
mode:
authorAndreas Kotes <count@flatline.de>2014-04-15 13:32:37 +0200
committerAndreas Kotes <count@flatline.de>2014-04-15 13:32:37 +0200
commit2cb919fee2df15cf82ec11fd32f59ef57436cd1b (patch)
treeba7bb838e2ea24434381c2520565514e7e7a4c40 /vchat-ssl.c
parent47ca1fb4bf7165c7bd1640be6045f785438eab22 (diff)
don't check cipher if SSL object not available
Diffstat (limited to 'vchat-ssl.c')
-rwxr-xr-xvchat-ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vchat-ssl.c b/vchat-ssl.c
index 0333aee..986187f 100755
--- a/vchat-ssl.c
+++ b/vchat-ssl.c
@@ -143,6 +143,7 @@ int vc_connect_ssl( BIO **conn, vc_x509store_t *vc_store )
143 143
144 /* Get cipher object */ 144 /* Get cipher object */
145 BIO_get_ssl(ssl_conn, &sslp); 145 BIO_get_ssl(ssl_conn, &sslp);
146 if (sslp)
146 cipher = SSL_get_current_cipher(sslp); 147 cipher = SSL_get_current_cipher(sslp);
147 if (cipher) { 148 if (cipher) {
148 char cipher_desc[TMPSTRSIZE]; 149 char cipher_desc[TMPSTRSIZE];