فهرست منبع

tun2socks: fix typo which might cause a crash if tcp_close() failed due to out of memory (theoretical bug only). Found
with the help of clang static analyzer.

ambrop7 13 سال پیش
والد
کامیت
3f217dcf13
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tun2socks/tun2socks.c

+ 1 - 1
tun2socks/tun2socks.c

@@ -1204,7 +1204,7 @@ err_t client_recv_func (void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t e
         
         int ret = client_free_client(client);
         
-        return (err ? ERR_ABRT : ERR_OK);
+        return (ret ? ERR_ABRT : ERR_OK);
     }
     
     ASSERT(p->tot_len > 0)