[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
- [GNUnet-SVN] [gnurl] 85/153: .travis.yml: verify that man pages can be regenerated, (continued)
- [GNUnet-SVN] [gnurl] 85/153: .travis.yml: verify that man pages can be regenerated, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 79/153: CURLINFO_SIZE_UPLOAD: fix missing counter update, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 61/153: windows: implement send buffer tuning, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 77/153: RELEASE-NOTES: synced, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 83/153: projects: Improve Windows perl detection in batch scripts, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 78/153: Documentation: fix CURLOPT_SSH_COMPRESSION copy/paste bug, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 55/153: DEPRECATE: remove release date from 7.62.0, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 82/153: docs: Improve the manual pages of some callbacks, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 81/153: GCC: silence -Wcast-function-type uniformly, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 52/153: test1307: disabled, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 76/153: openssl: fix potential NULL pointer deref in is_pkcs11_uri,
gnunet <=
- [GNUnet-SVN] [gnurl] 67/153: formdata: Remove unused macro HTTPPOST_CONTENTTYPE_DEFAULT, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 49/153: RELEASE-NOTES: synced, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 50/153: general: fix printf specifiers, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 60/153: ssl: set engine implicitly when a PKCS#11 URI is provided, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 74/153: lib1502: fix memory leak in torture test, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 75/153: travis: execute "set -eo pipefail" for coverage build, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 73/153: docs: mention NULL is fine input to several functions, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 66/153: telnet: Remove unused macros TELOPTS and TELCMDS, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 69/153: asyn-thread: Remove unused macro, gnunet, 2018/09/11
- [GNUnet-SVN] [gnurl] 70/153: test1540: Remove unused macro TEST_HANG_TIMEOUT, gnunet, 2018/09/11