git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
socket-util: Don't try to listen to a UDP socket.
[sliver-openvswitch.git]
/
lib
/
socket-util.c
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index
219433f
..
12f0432
100644
(file)
--- a/
lib/socket-util.c
+++ b/
lib/socket-util.c
@@
-702,7
+702,7
@@
inet_open_passive(int style, const char *target, int default_port,
}
/* Listen. */
- if (listen(fd, 10) < 0) {
+ if (
style == SOCK_STREAM &&
listen(fd, 10) < 0) {
error = errno;
VLOG_ERR("%s: listen: %s", target, strerror(error));
goto error;