fix NULL pointer dereference, closes issue #28

pull/1/head
Heiko Hund 2013-04-10 18:49:08 +02:00
parent f728b41196
commit c54a444931
1 changed files with 3 additions and 0 deletions

View File

@ -463,6 +463,9 @@ static VOID
ParseProxyString(LPWSTR proxy_str, url_scheme scheme,
LPCSTR *type, LPCWSTR *host, LPCWSTR *port)
{
if (proxy_str == NULL)
return;
LPCWSTR delim = L"; ";
LPWSTR token = wcstok(proxy_str, delim);