For interfaces listed in a domain but without any address we returned {2, AF_UNSPEC}, but we only skipped 1 byte instead of 2... fixed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19961 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2007-01-26 11:07:08 +00:00
parent 76b72c03e8
commit ab28e0ff2c

View File

@ -118,7 +118,7 @@ list_domain_interfaces(void *buffer, size_t size)
if (interface == NULL)
break;
size = IF_NAMESIZE + (interface->address ? interface->address->sa_len : 1);
size = IF_NAMESIZE + (interface->address ? interface->address->sa_len : 2);
if (spaceLeft < size)
return ENOBUFS;