PUD: compare i/f name length against max i/f name length
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 21 Jun 2011 08:29:00 +0000 (10:29 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 21 Jun 2011 08:29:25 +0000 (10:29 +0200)
lib/pud/src/netTools.c

index df85391..793a1f0 100644 (file)
@@ -56,7 +56,7 @@ unsigned char * getHardwareAddress(const char * ifName, int family,
        int cpySize;
 
        assert(ifName != NULL);
-       assert(strlen(ifName) < IFHWADDRLEN);
+       assert(strlen(ifName) <= IFNAMSIZ);
        assert((family == AF_INET) || (family == AF_INET6));
        assert(ifr != NULL);