X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Ftlsproxy.c;h=7c7013383e3bf948c75742c6327a7308d0c8e4c3;hb=1c56e6d7e4f7f80eab3a630ce81b2b6481072121;hp=9c3b53c26383782eadde7028ad295cb8c40afc1b;hpb=e73d568e9135bce2343ed295b632c2dcb0313859;p=tlsproxy%2Ftlsproxy.git diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 9c3b53c..7c70133 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -291,7 +291,7 @@ static void worker_thread(void) { V(ringbuffer_free); /* Negative value indicates we should shut down our thread. */ - if (client_socket < 0) { + if (0 > client_socket) { break; }