mirror of https://github.com/moparisthebest/curl
openssl: fix potential NULL pointer deref in is_pkcs11_uri
Follow-up to 298d2565e
Coverity CID 1438387
This commit is contained in:
parent
9fe9bd7641
commit
27cc5f1a97
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue