diff options
author | Joe Mason <jmason@rim.com> | 2012-07-27 17:25:45 -0400 |
---|---|---|
committer | Joe Mason <jmason@rim.com> | 2012-08-03 17:01:02 -0400 |
commit | ce8311c7e49eca93c136b58efa6763853541ec97 (patch) | |
tree | 5f34338d2f852599ce0a7cece58bf1ebe5030b27 /lib | |
parent | 674da8ae07e3780b393bd1aebb7b7f973433c29f (diff) |
Zero out auth structs before transfer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 20b3d048e..d6fc93445 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1433,6 +1433,10 @@ CURLcode Curl_pretransfer(struct SessionHandle *data) data->state.ssl_connect_retry = FALSE; + /* zero out auth state */ + memset(&data->state.authhost, 0, sizeof(struct auth)); + memset(&data->state.authproxy, 0, sizeof(struct auth)); + data->state.authproblem = FALSE; data->state.authhost.want = data->set.httpauth; data->state.authproxy.want = data->set.proxyauth; |