projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netdev-linux: Fix netdev_linux_send() return value in corner case.
[cascardo/ovs.git]
/
lib
/
netdev-linux.c
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index
1fac087
..
14e217a
100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-941,7
+941,7
@@
netdev_linux_send(struct netdev *netdev_, const void *data, size_t size)
sock = af_packet_sock();
if (sock < 0) {
- return sock;
+ return
-
sock;
}
error = get_ifindex(netdev_, &ifindex);