gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 21/173: digest_sspi: copy terminating NUL as well


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 21/173: digest_sspi: copy terminating NUL as well
Date: Fri, 24 Feb 2017 14:00:43 +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 89b789884680134d5090c6de2e6b621e908b1902
Author: Max Khon <address@hidden>
AuthorDate: Wed Dec 28 18:10:59 2016 +0600

    digest_sspi: copy terminating NUL as well
    
    Curl_auth_decode_digest_http_message(): copy terminating NUL as later
    Curl_override_sspi_http_realm() expects a NUL-terminated string.
    
    Fixes #1180
---
 lib/vauth/digest_sspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vauth/digest_sspi.c b/lib/vauth/digest_sspi.c
index b9ceb12a9..6f0746fc4 100644
--- a/lib/vauth/digest_sspi.c
+++ b/lib/vauth/digest_sspi.c
@@ -341,7 +341,7 @@ CURLcode Curl_auth_decode_digest_http_message(const char 
*chlg,
     return CURLE_BAD_CONTENT_ENCODING;
 
   /* Simply store the challenge for use later */
-  digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen);
+  digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen + 1);
   if(!digest->input_token)
     return CURLE_OUT_OF_MEMORY;
 

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



reply via email to

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