Fix hwaddr_aton

This commit is contained in:
Roy Marples 2008-06-29 10:55:21 +00:00
parent 7f90106a9e
commit 1f96a7d73e

3
net.c
View File

@ -160,7 +160,8 @@ hwaddr_aton(unsigned char *buffer, const char *addr)
errno = EINVAL;
return 0;
}
p++;
if (*p)
p++;
if (bp)
*bp++ = (unsigned char)strtol(c, NULL, 16);
else