summaryrefslogtreecommitdiff
path: root/src/detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect.c')
-rw-r--r--src/detect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detect.c b/src/detect.c
index e97e9df8..781b8fa9 100644
--- 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];