projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovsdb-data: Short-circuit ovsdb_datum_includes_all() in trivial case.
[openvswitch]
/
lib
/
socket-util.c
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index 219433fb8f4968b0d6260223fe92af6a10c84399..12f04321beb9df16b6097f9be3295eec2ff683f8 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;