From: Marcel Holtmann Date: Tue, 30 Dec 2008 20:25:04 +0000 (+0100) Subject: Fail if interface name can't be retrieved X-Git-Tag: 0.6~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb;p=platform%2Fupstream%2Fconnman.git Fail if interface name can't be retrieved --- diff --git a/src/detect.c b/src/detect.c index e97e9df..781b8fa 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];