diff options
-rw-r--r-- | ssl/ssl_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index adb32351ca..47a0c7c4ea 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1256,11 +1256,12 @@ char *SSL_get_shared_ciphers(const SSL *s,char *buf,int len) (len < 2)) return(NULL); + p=buf; + sk=s->session->ciphers; + if (sk_SSL_CIPHER_num(sk) == 0) return NULL; - p=buf; - sk=s->session->ciphers; for (i=0; i<sk_SSL_CIPHER_num(sk); i++) { int n; |