diff options
Diffstat (limited to 'lib/vtls/openssl.c')
-rw-r--r-- | lib/vtls/openssl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index f747db9ac..78ee7e4f7 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -564,12 +564,7 @@ static int ssl_ui_writer(UI *ui, UI_STRING *uis) */ static bool is_pkcs11_uri(const char *string) { - if(strncasecompare(string, "pkcs11:", 7)) { - return TRUE; - } - else { - return FALSE; - } + return (string && strncasecompare(string, "pkcs11:", 7)); } #endif |