mirror of
https://github.com/curl/curl.git
synced 2026-05-19 15:06:20 +03:00
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
1 changed files with 1 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue