mirror of https://github.com/OpenVPN/openvpn-gui
fix NULL pointer dereference, closes issue #28
parent
f728b41196
commit
c54a444931
3
proxy.c
3
proxy.c
|
@ -463,6 +463,9 @@ static VOID
|
||||||
ParseProxyString(LPWSTR proxy_str, url_scheme scheme,
|
ParseProxyString(LPWSTR proxy_str, url_scheme scheme,
|
||||||
LPCSTR *type, LPCWSTR *host, LPCWSTR *port)
|
LPCSTR *type, LPCWSTR *host, LPCWSTR *port)
|
||||||
{
|
{
|
||||||
|
if (proxy_str == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
LPCWSTR delim = L"; ";
|
LPCWSTR delim = L"; ";
|
||||||
LPWSTR token = wcstok(proxy_str, delim);
|
LPWSTR token = wcstok(proxy_str, delim);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue