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

lwsgs: handle NULL pss at ADD_HEADERS

This commit is contained in:
Andy Green 2018-01-14 20:37:45 +08:00
parent a3bbb0a374
commit 87aff27ab1

View file

@ -750,7 +750,8 @@ completion_flow:
lwsgw_expire_old_sessions(vhd);
args = (struct lws_process_html_args *)in;
if (!pss)
return 1;
if (pss->delete_session.id[0]) {
pc = cookie;
lwsgw_cookie_from_session(&pss->delete_session, 0, &pc,