From 907819c36692a3e13229c0e40d73432e83e84f62 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Mon, 15 Mar 2010 10:13:51 -0700
Subject: [PATCH] vconn-stream: Fix listening on ptcp: and pssl: without
 specifying a port.

This function was adding an extra ":", which made pstream_open() unhappy.
---
 lib/vconn-stream.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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_);
     }
-- 
2.30.2