diff options
-rw-r--r-- | lib/libssl/src/ssl/kssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/ssl/kssl.c b/lib/libssl/src/ssl/kssl.c index 9e71eed9fac..b04c83e17fe 100644 --- a/lib/libssl/src/ssl/kssl.c +++ b/lib/libssl/src/ssl/kssl.c @@ -963,7 +963,7 @@ kssl_ctx_setstring(KSSL_CTX *kssl_ctx, int which, char *text) free(*string); *string = NULL; - if ((*string = strdup(text ? text : "")) == NULL) + if (text && (*string = strdup(text)) == NULL) return KSSL_CTX_ERR; return KSSL_CTX_OK; |