vconn-tcp: Report correct remote IP and remote port.
[openvswitch] / lib / vconn-tcp.c
index eece228e8f3e6dad95aaea5e2b8dbe92859c1d39..998a20013862e0a5e80e7aac415f6a375f3e4462 100644 (file)
@@ -75,7 +75,7 @@ tcp_open(const char *name, char *suffix, struct vconn **vconnp)
     struct sockaddr_in sin;
     int fd, error;
 
-    error = tcp_open_active(suffix, OFP_TCP_PORT, NULL, &fd);
+    error = tcp_open_active(suffix, OFP_TCP_PORT, &sin, &fd);
     if (fd >= 0) {
         return new_tcp_vconn(name, fd, error, &sin, vconnp);
     } else {