gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 65/205: curl_easy_reset: Also reset the authenticat


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 65/205: curl_easy_reset: Also reset the authentication state
Date: Thu, 20 Apr 2017 16:20:05 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 0afbcfd800c45e766e225e4ce273b128ee6a8c25
Author: Michael Kaufmann <address@hidden>
AuthorDate: Sat Mar 11 18:22:30 2017 +0100

    curl_easy_reset: Also reset the authentication state
    
    Follow-up to 5278462
    See https://github.com/curl/curl/issues/1095
---
 lib/easy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/easy.c b/lib/easy.c
index bed94a444..ef023aa92 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -981,6 +981,10 @@ void curl_easy_reset(struct Curl_easy *data)
 
   data->progress.flags |= PGRS_HIDE;
   data->state.current_speed = -1; /* init to negative == impossible */
+
+  /* zero out authentication data: */
+  memset(&data->state.authhost, 0, sizeof(struct auth));
+  memset(&data->state.authproxy, 0, sizeof(struct auth));
 }
 
 /*

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



reply via email to

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