projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
socket-util: Report fd of -1 on error in inet_open_active().
[openvswitch]
/
lib
/
socket-util.c
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index a37dfe4aa5cbf01572d87d69b0b3e6be2d6b7771..4edf956b555f69beaaabbfd54eefc0837bc615c4 100644
(file)
--- a/
lib/socket-util.c
+++ b/
lib/socket-util.c
@@
-612,6
+612,7
@@
exit:
}
} else if (fd >= 0) {
close(fd);
+ fd = -1;
}
*fdp = fd;
return error;