vconn: Make errors in vconn names non-fatal errors.
[openvswitch] / lib / vconn-tcp.c
index aaff94038ed6eab81796d6ba49bc81c63d7dc007..80c8f56c5b6c558846d3c8686042a592edf763cf 100644 (file)
@@ -117,7 +117,8 @@ tcp_open(const char *name, char *suffix, struct vconn **vconnp)
     host_name = strtok_r(suffix, "::", &save_ptr);
     port_string = strtok_r(NULL, "::", &save_ptr);
     if (!host_name) {
-        fatal(0, "%s: bad peer name format", name);
+        error(0, "%s: bad peer name format", name);
+        return EAFNOSUPPORT;
     }
 
     memset(&sin, 0, sizeof sin);