summaryrefslogtreecommitdiff
path: root/src/detect.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-30 21:25:04 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-30 21:25:04 +0100
commit8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb (patch)
tree338f9780073d25b24271877e2a5f7e705f968f70 /src/detect.c
parent655c0e47d64295fd94fbd4bfb09539cb9300e300 (diff)
downloadconnman-8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb.tar.gz
connman-8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb.tar.bz2
connman-8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb.zip
Fail if interface name can't be retrieved
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];