Unverified Commit 27cc5f1a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

openssl: fix potential NULL pointer deref in is_pkcs11_uri

Follow-up to 298d2565
Coverity CID 1438387
parent 9fe9bd76
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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