[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 07/173: ftp-gss: check for init before use
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 07/173: ftp-gss: check for init before use |
Date: |
Fri, 24 Feb 2017 14:00:29 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.53.1
in repository gnurl.
commit 5fe164a258b2a8524de1bfa58e8faa082770bcdd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Dec 23 00:06:25 2016 +0100
ftp-gss: check for init before use
To avoid dereferencing a NULL pointer.
Reported-by: Daniel Romero
---
lib/security.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/security.c b/lib/security.c
index 4a8f44433..f4a876341 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -367,6 +367,10 @@ int Curl_sec_read_msg(struct connectdata *conn, char
*buffer,
size_t decoded_sz = 0;
CURLcode error;
+ if(!conn->mech)
+ /* not inititalized, return error */
+ return -1;
+
DEBUGASSERT(level > PROT_NONE && level < PROT_LAST);
error = Curl_base64_decode(buffer + 4, (unsigned char **)&buf, &decoded_sz);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] annotated tag gnurl-7.53.1 created (now 45aa29388), gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 09/173: configure: accept --with-libidn2 instead, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 01/173: gnutls-random: check return code for failed random, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 02/173: openssl-random: check return code when asking for random, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 18/173: darwinssl: fix CFArrayRef leak, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 07/173: ftp-gss: check for init before use,
gnunet <=
- [GNUnet-SVN] [gnurl] 11/173: formdata: use NULL, not 0, when returning pointers, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 10/173: ftp: failure to resolve proxy should return that error code, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 14/173: vtls: s/SSLEAY/OPENSSL, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 12/173: cmdline-opts/page-footer: add three more exit codes, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 04/173: bump: toward next release, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 06/173: build-wolfssl: Sync config with wolfSSL 3.10, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 03/173: http: remove "Curl_http_done: called premature" message, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 17/173: darwinssl: fix iOS build, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 23/173: page-footer: error 36 is protocol agnostic!, gnunet, 2017/02/24
- [GNUnet-SVN] [gnurl] 05/173: cyassl: use time_t instead of long for timeout, gnunet, 2017/02/24