Skip to content

Commit a827a82

Browse files
committed
return null if len<=0
1 parent ce7b81b commit a827a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ const char* wolfSSL_get_shared_ciphers(WOLFSSL* ssl, char* buf, int len)
12741274
{
12751275
const char* cipher;
12761276

1277-
if (ssl == NULL)
1277+
if (ssl == NULL || len <= 0)
12781278
return NULL;
12791279

12801280
cipher = wolfSSL_get_cipher_name_iana(ssl);

0 commit comments

Comments
 (0)