Skip to content

Commit 3d2b322

Browse files
committed
HevSocks5Tunnel: Return ERR_MEM if creating task fails in TCP accept handler.
1 parent 5a896c2 commit 3d2b322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hev-socks5-tunnel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ tcp_accept_handler (void *arg, struct tcp_pcb *pcb, err_t err)
150150
task = hev_task_new (stack_size);
151151
if (!task) {
152152
hev_object_unref (HEV_OBJECT (tcp));
153-
return ERR_ABRT;
153+
return ERR_MEM;
154154
}
155155

156156
hev_socks5_session_set_task (HEV_SOCKS5_SESSION (tcp), task);

0 commit comments

Comments
 (0)