Browse code

- minor: nicer error handling

Andrei Pelinescu-Onciul authored on 16/02/2007 21:34:13
Showing 1 changed files
... ...
@@ -856,11 +856,11 @@ again:
856 856
 			}
857 857
 			if (n==0){
858 858
 				LOG(L_ERR, "WARNING: tcp_receive: handle_io: 0 bytes read\n");
859
-				break;
859
+				goto error;
860 860
 			}
861 861
 			if (con==0){
862 862
 					LOG(L_CRIT, "BUG: tcp_receive: handle_io null pointer\n");
863
-					break;
863
+					goto error;
864 864
 			}
865 865
 			con->fd=s;
866 866
 			if (s==-1) {