1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

coverity 155649 medium possible write to null pointer

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-12-06 11:04:05 +08:00
parent ef951221d6
commit e96b2c680a

View file

@ -718,8 +718,10 @@ lws_set_proxy(struct lws_context *context, const char *proxy)
return -1;
} else {
*p = '\0';
context->http_proxy_port = atoi(p + 1);
if (p) {
*p = '\0';
context->http_proxy_port = atoi(p + 1);
}
}
lwsl_notice(" Proxy %s:%u\n", context->http_proxy_address,