X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn-tcp.c;h=80c8f56c5b6c558846d3c8686042a592edf763cf;hb=d838ee2e03256bb3b116de6ed05548011ed97728;hp=aaff94038ed6eab81796d6ba49bc81c63d7dc007;hpb=d07d22508e7b2ed628e3dce125c09f71f0ad0efc;p=openvswitch diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c index aaff9403..80c8f56c 100644 --- a/lib/vconn-tcp.c +++ b/lib/vconn-tcp.c @@ -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);