projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a1e28
)
vconn-stream: Fix listening on ptcp: and pssl: without specifying a port.
author
Ben Pfaff
<blp@nicira.com>
Mon, 15 Mar 2010 17:13:51 +0000
(10:13 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 15 Mar 2010 17:17:33 +0000
(10:17 -0700)
This function was adding an extra ":", which made pstream_open() unhappy.
lib/vconn-stream.c
patch
|
blob
|
history
diff --git
a/lib/vconn-stream.c
b/lib/vconn-stream.c
index 99eb21a89d9598f36d63e4345993e8789d5ff7f6..7a9ef389c75ae7b2c49fad3b201fab93e7a386ea 100644
(file)
--- 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_);
}