gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 214/256: mime: fix an explicit null dereference (#1


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 214/256: mime: fix an explicit null dereference (#1899)
Date: Fri, 06 Oct 2017 19:45:05 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit f3042018686c0e5659264acb9bc20373c4e4503a
Author: Patrick Monnerat <address@hidden>
AuthorDate: Wed Sep 20 12:01:11 2017 +0100

    mime: fix an explicit null dereference (#1899)
---
 lib/mime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/mime.c b/lib/mime.c
index 312094d7f..4eeb8375d 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -1604,7 +1604,7 @@ CURLcode Curl_mime_prepare_headers(curl_mimepart *part,
 
   /* Be sure we won't access old headers later. */
   if(part->state.state == MIMESTATE_CURLHEADERS)
-    mimesetstate(&mime->state, MIMESTATE_CURLHEADERS, NULL);
+    mimesetstate(&part->state, MIMESTATE_CURLHEADERS, NULL);
 
   /* Build the content-type header. */
   s = search_header(part->userheaders, "Content-Type");
@@ -1704,7 +1704,7 @@ CURLcode Curl_mime_prepare_headers(curl_mimepart *part,
   /* If we were reading curl-generated headers, restart with new ones (this
      should not occur). */
   if(part->state.state == MIMESTATE_CURLHEADERS)
-    mimesetstate(&mime->state, MIMESTATE_CURLHEADERS, part->curlheaders);
+    mimesetstate(&part->state, MIMESTATE_CURLHEADERS, part->curlheaders);
 
   /* Process subparts. */
   if(part->kind == MIMEKIND_MULTIPART && mime) {

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



reply via email to

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