getmacaddrs: fix bad logic in list-traversal loop
getmacaddrs: fix bad logic in list-traversal loop

Previously the loop fails to check for the case when ifa.ifa_addr is
nothing.  Now fixed and made slightly more readable.

congma/pysrun