X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fiface.c;h=8098de4a38bb335465feaebbab7c9af5d0947755;hb=9a048b843719ad831c17b030ac522bc1e57122f8;hp=9fc8cb3293e69463e660eec82fb080c68635bfea;hpb=1c24d17c1001240306e054ea534c3aa69a45604b;p=catta diff --git a/avahi-core/iface.c b/avahi-core/iface.c index 9fc8cb3..8098de4 100644 --- a/avahi-core/iface.c +++ b/avahi-core/iface.c @@ -539,7 +539,7 @@ AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m, AvahiHwInterface* avahi_interface_monitor_get_hw_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx) { assert(m); - assert(idx > 0); + assert(idx >= 0); return avahi_hashmap_lookup(m->hashmap, &idx); } @@ -799,7 +799,7 @@ AvahiIfIndex avahi_find_interface_for_address(AvahiInterfaceMonitor *m, const Av assert(m); /* Some stupid OS don't support passing the interface index when a - * packet is recieved. We have to work around that limitation by + * packet is received. We have to work around that limitation by * looking for an interface that has the incoming address * attached. This is sometimes ambiguous, but we have to live with * it. */