Jelajahi Sumber

tun2socks: possible bug fix. In the lwip error callback, signal the client_dead dead-variable so that ERR_ABRT is returned to
any chained callbacks (if that could happen in the first place).

ambrop7 13 tahun lalu
induk
melakukan
ccfe9881cf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      tun2socks/tun2socks.c

+ 1 - 1
tun2socks/tun2socks.c

@@ -1280,7 +1280,7 @@ void client_err_func (void *arg, err_t err)
     client_log(client, BLOG_INFO, "client error (%d)", (int)err);
     
     // the pcb was taken care of by the caller
-    client_handle_freed_client(client, 0);
+    client_handle_freed_client(client, 1);
 }
 
 err_t client_recv_func (void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err)