projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655c0e4
)
Fail if interface name can't be retrieved
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Dec 2008 20:25:04 +0000
(21:25 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Dec 2008 20:25:04 +0000
(21:25 +0100)
src/detect.c
patch
|
blob
|
history
diff --git
a/src/detect.c
b/src/detect.c
index
e97e9df
..
781b8fa
100644
(file)
--- a/
src/detect.c
+++ b/
src/detect.c
@@
-140,6
+140,8
@@
static void detect_newlink(unsigned short type, int index,
return;
devname = index2name(index);
+ if (devname == NULL)
+ return;
if (type == ARPHRD_ETHER) {
char bridge_path[PATH_MAX], wimax_path[PATH_MAX];