X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fiface-linux.c;h=985fe3f9ef1413f37e451ab69f6a4bd234eaf018;hb=3073103812f0ea376582eb0ff1479945a847b361;hp=4fc4addfd49cf6e37f4e48314a7f891ae6765ee3;hpb=5c0f7327451ba44f43aaaf28816c7ed172128ccc;p=catta diff --git a/avahi-core/iface-linux.c b/avahi-core/iface-linux.c index 4fc4add..985fe3f 100644 --- a/avahi-core/iface-linux.c +++ b/avahi-core/iface-linux.c @@ -124,8 +124,8 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat /* Fill in hardware (MAC) address */ hw->mac_address_size = RTA_PAYLOAD(a); - if (hw->mac_address_size > AVAHI_MAX_MAC_ADDRESS) - hw->mac_address_size = AVAHI_MAX_MAC_ADDRESS; + if (hw->mac_address_size > AVAHI_MAC_ADDRESS_MAX) + hw->mac_address_size = AVAHI_MAC_ADDRESS_MAX; memcpy(hw->mac_address, RTA_DATA(a), hw->mac_address_size); break;