socket-util: Don't try to listen to a UDP socket.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Dec 2011 23:57:15 +0000 (15:57 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 19 Dec 2011 22:53:31 +0000 (14:53 -0800)
commit041dc07fd21b6987ffbcc6a597eb9918d44ae841
tree04062b77afcdff32e2865a458c6be5fe69e56bd6
parent02e83e83b4c8d88f50317ba56fec53cd6d3fb909
socket-util: Don't try to listen to a UDP socket.

The "listen" system call doesn't work and isn't necessary for UDP, but
inet_open_passive() would still try to call it (and fail).

This doesn't fix a real bug because the two existing callers both use
inet_open_passive() to listen for TCP connections.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/socket-util.c