]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: fix element size / length in memmove
authorLaine Stump <laine@laine.org>
Wed, 19 Sep 2012 22:45:58 +0000 (18:45 -0400)
committerLaine Stump <laine@laine.org>
Thu, 20 Sep 2012 01:43:02 +0000 (21:43 -0400)
commitdb8760ffe67cc2a4af62cf29af3985e4d20ec66e
treea499d31d9494881e41340f0dc0bc51aada90866d
parent6a1b0e37afc882085aac927c467ab78760d3712b
network: fix element size / length in memmove

The memmove to move elements in the dhcp hosts array when inserting
and deleting items was mistakenly basing the length of the copy on the
size of a virNetworkDHCPHostDefPtr rather than virNetworkDHCPHostDef,
with the expected disastrous results.

The memmove to delete an entry commits two errors - along with the
size of each element being wrong, it also omits some required
parentheses.
src/conf/network_conf.c