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:
@@ -118,7 +118,7 @@ list_domain_interfaces(void *buffer, size_t size)
|
|||||||
if (interface == NULL)
|
if (interface == NULL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
size = IF_NAMESIZE + (interface->address ? interface->address->sa_len : 1);
|
size = IF_NAMESIZE + (interface->address ? interface->address->sa_len : 2);
|
||||||
if (spaceLeft < size)
|
if (spaceLeft < size)
|
||||||
return ENOBUFS;
|
return ENOBUFS;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user