Commit aa0aacce authored by Johan Paul's avatar Johan Paul

su_uniqueid.c: fixed problem getifaddrs returning NULL

darcs-hash:20060807081532-c0223-8d61439aa309b4f04a5195d984a2f2aa82da96a5.gz
parent 9767a102
......@@ -196,7 +196,7 @@ void init_node(void)
#if HAVE_SOCKADDR_LL
struct sockaddr_ll const *sll = (void *)ifa->ifa_addr;
if (sll->sll_family != AF_PACKET)
if (sll == NULL || sll->sll_family != AF_PACKET)
continue;
switch (sll->sll_hatype) {
case ARPHRD_ETHER:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment