projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-linux: check for open failure
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
6e4a194
..
a038987
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-2489,6
+2489,8
@@
int system_update_ipv6_mtu(struct device *dev, int mtu)
dev->ifname);
int fd = open(buf, O_RDWR);
+ if (fd < 0)
+ return ret;
if (!mtu) {
ssize_t len = read(fd, buf, sizeof(buf) - 1);