]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - src/tlsproxy.c
src/*.c: Always use constants on the left in comparisons.
[tlsproxy/tlsproxy.git] / src / tlsproxy.c
index 9c3b53c26383782eadde7028ad295cb8c40afc1b..7c7013383e3bf948c75742c6327a7308d0c8e4c3 100644 (file)
@@ -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;
         }