Skip to content

Commit

Permalink
HevSocks5Tunnel: Return ERR_MEM if creating task fails in TCP accept …
Browse files Browse the repository at this point in the history
…handler.
  • Loading branch information
heiher committed Nov 17, 2024
1 parent 5a896c2 commit 3d2b322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hev-socks5-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ tcp_accept_handler (void *arg, struct tcp_pcb *pcb, err_t err)
task = hev_task_new (stack_size);
if (!task) {
hev_object_unref (HEV_OBJECT (tcp));
return ERR_ABRT;
return ERR_MEM;
}

hev_socks5_session_set_task (HEV_SOCKS5_SESSION (tcp), task);
Expand Down

0 comments on commit 3d2b322

Please sign in to comment.