1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-10 05:17:59 +03:00

conf: honor maxnames in nodeListDevices API

Introduced by commit <4ae9dbea99c>.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1528572

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2018-01-02 10:18:17 +01:00
parent 715b321da1
commit bbf6573e94

View File

@ -798,6 +798,9 @@ virNodeDeviceObjListGetNamesCallback(void *payload,
if (data->error)
return 0;
if (data->nnames >= data->maxnames)
return 0;
virObjectLock(obj);
def = obj->def;