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

Pass user_sapce to callback for LWS_CALLBACK_CLIENT_CONNECTION_ERROR

This commit is contained in:
Duncan Tebbs 2014-09-25 10:39:13 +09:00
parent c00675cafb
commit fd9e90242f

View file

@ -83,7 +83,7 @@ libwebsocket_close_and_free_session(struct libwebsocket_context *context,
wsi->mode == LWS_CONNMODE_WS_CLIENT_ISSUE_HANDSHAKE) {
context->protocols[0].callback(context, wsi,
LWS_CALLBACK_CLIENT_CONNECTION_ERROR, NULL, NULL, 0);
LWS_CALLBACK_CLIENT_CONNECTION_ERROR, wsi->user_space, NULL, 0);
free(wsi->u.hdr.ah);
goto just_kill_connection;