xmlrpc-c/curl-uninit-auth.patch

40 lines
1.6 KiB
Diff

commit 67423a6ac47158d01a152222725c1fef63c5c49c
Author: giraffedata <giraffedata@adbb7d4b-a73a-0410-a071-c5f57c452bd4>
Date: Fri May 11 15:41:03 2012 +0000
Fix unset variable
git-svn-id: https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk@2319 adbb7d4b-a73a-0410-a071-c5f57c452bd4
diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
index 6fe7903..fce691e 100644
--- a/lib/curl_transport/curltransaction.c
+++ b/lib/curl_transport/curltransaction.c
@@ -376,10 +376,9 @@ setupAuth(xmlrpc_env * const envP ATTR_UNUSED,
HTTP basic authentication.
So the special function is this: if libcurl is too old to have
- authorization options and *serverInfoP allows basic authentication,
- return as *basicAuthHdrParamP an appropriate parameter for the
- Authorization: Basic: HTTP header. Otherwise, return
- *basicAuthHdrParamP == NULL.
+ authorization options and *serverInfoP allows basic authentication, return
+ as *authHdrValueP an appropriate parameter for the Authorization: Basic:
+ HTTP header. Otherwise, return *authHdrValueP == NULL.
-----------------------------------------------------------------------------*/
CURLcode rc;
@@ -415,10 +414,12 @@ setupAuth(xmlrpc_env * const envP ATTR_UNUSED,
"authentication header");
} else
*authHdrValueP = NULL;
- }
+ } else
+ *authHdrValueP = NULL;
}
+
static void
setCurlTimeout(CURL * const curlSessionP ATTR_UNUSED,
unsigned int const timeout ATTR_UNUSED) {