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:
parent
ef951221d6
commit
e96b2c680a
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue