Fail if interface name can't be retrieved
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 20:25:04 +0000 (21:25 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Dec 2008 20:25:04 +0000 (21:25 +0100)
src/detect.c

index e97e9df..781b8fa 100644 (file)
@@ -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];