aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vconn-tcp.c')
-rw-r--r--lib/vconn-tcp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c
index 081ac26d..3b29a290 100644
--- a/lib/vconn-tcp.c
+++ b/lib/vconn-tcp.c
@@ -64,12 +64,8 @@ tcp_open(const char *name, char *suffix, struct vconn **vconnp)
int retval;
int fd;
- /* Glibc 2.7 has a bug in strtok_r when compiling with optimization that
- * can cause segfaults here:
- * http://sources.redhat.com/bugzilla/show_bug.cgi?id=5614.
- * Using "::" instead of the obvious ":" works around it. */
- host_name = strtok_r(suffix, "::", &save_ptr);
- port_string = strtok_r(NULL, "::", &save_ptr);
+ host_name = strtok_r(suffix, ":", &save_ptr);
+ port_string = strtok_r(NULL, ":", &save_ptr);
if (!host_name) {
ovs_error(0, "%s: bad peer name format", name);
return EAFNOSUPPORT;