segmentation fault avoided when host unreachable
authorMarcel Poul <marcel.poul@cern.ch>
Thu, 24 Nov 2011 21:59:39 +0000 (21:59 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Thu, 24 Nov 2011 21:59:39 +0000 (21:59 +0000)
emi.canl.canl-c/src/canl.c

index a1ac28e..c465920 100644 (file)
@@ -183,6 +183,7 @@ int canl_io_connect(canl_ctx cc, canl_io_handler io, char * host, int port,
             goto end;
         default:
             err = EHOSTUNREACH; //TODO check
+            goto end;
     }
 
     sa_in = (struct sockaddr_in *) io_cc->s_addr;