Skip to content

Commit 609c1ac

Browse files
committed
CID 909465: FORWARD_NULL
1 parent bd1716b commit 609c1ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/protocol_lws_auth_device_client/protocol_lws_auth_device_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ callback_auth_device_client(struct lws *wsi, enum lws_callback_reasons reason, v
166166
char loc[256];
167167
char *q;
168168

169-
if (action->phase != 0)
169+
if (!action || action->phase != 0)
170170
break;
171171

172172
if (lws_hdr_copy(wsi, loc, sizeof(loc), WSI_TOKEN_HTTP_LOCATION) <= 0)

0 commit comments

Comments
 (0)