gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 76/153: openssl: fix potential NULL pointer deref i


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 76/153: openssl: fix potential NULL pointer deref in is_pkcs11_uri
Date: Tue, 11 Sep 2018 12:52:27 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 27cc5f1a975c03d9bb2fc7923f1ad267eb4cc4ab
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Aug 10 17:43:31 2018 +0200

    openssl: fix potential NULL pointer deref in is_pkcs11_uri
    
    Follow-up to 298d2565e
    Coverity CID 1438387
---
 lib/vtls/openssl.c | 7 +------
 1 file changed, 1 insertion(+), 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]