Skip to content
Snippets Groups Projects
Commit 249b2d04 authored by Andy Green's avatar Andy Green
Browse files

client: protect against possible NULL deref path

parent 09d87200
No related branches found
No related tags found
No related merge requests found
...@@ -408,6 +408,8 @@ just_kill_connection: ...@@ -408,6 +408,8 @@ just_kill_connection:
char* errorString; char* errorString;
lwsl_debug("Connection closed before server reply\n"); lwsl_debug("Connection closed before server reply\n");
errorString = NULL;
if (wsi->u.hdr.ah)
errorString = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP); errorString = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP);
if (errorString) { if (errorString) {
context->protocols[0].callback(wsi, context->protocols[0].callback(wsi,
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment