Signed-off-by: Guido Vranken <[email protected]>
---
src/openvpn/proxy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/openvpn/proxy.c b/src/openvpn/proxy.c
index b0ed327..8ff09ba 100644
--- a/src/openvpn/proxy.c
+++ b/src/openvpn/proxy.c
@@ -318,6 +318,7 @@ get_proxy_authenticate(socket_descriptor_t sd,
{
if (!recv_line(sd, buf, sizeof(buf), timeout, true, NULL,
signal_received))
{
+ free(*data);
*data = NULL;
return HTTP_AUTH_NONE;
}
@@ -991,6 +992,7 @@ establish_http_proxy_passthru(struct http_proxy_info *p,
if (p->options.auth_retry == PAR_NCT && method ==
HTTP_AUTH_BASIC)
{
msg(D_PROXY, "HTTP proxy: support for basic auth
and other cleartext proxy auth methods is disabled");
+ free(pa);
goto error;
}
p->auth_method = method;
--
2.1.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel