From: Ben Pfaff Date: Mon, 15 Mar 2010 17:13:51 +0000 (-0700) Subject: vconn-stream: Fix listening on ptcp: and pssl: without specifying a port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=907819c36692a3e13229c0e40d73432e83e84f62;p=openvswitch vconn-stream: Fix listening on ptcp: and pssl: without specifying a port. This function was adding an extra ":", which made pstream_open() unhappy. --- diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 99eb21a8..7a9ef389 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -307,9 +307,9 @@ pvconn_pstream_listen(const char *name_, char *suffix OVS_UNUSED, int error; if (!strncmp(name_, "ptcp:", 5) && count_fields(name_) < 2) { - name = xasprintf("%s:%d", name_, OFP_TCP_PORT); + name = xasprintf("%s%d", name_, OFP_TCP_PORT); } else if (!strncmp(name_, "pssl:", 5) && count_fields(name_) < 2) { - name = xasprintf("%s:%d", name_, OFP_SSL_PORT); + name = xasprintf("%s%d", name_, OFP_SSL_PORT); } else { name = xstrdup(name_); }