]> git.proxmox.com Git - ovs.git/commit
ovsdb-client: Use correct operand to 'sizeof' in do_dump().
authorBen Pfaff <blp@ovn.org>
Wed, 31 May 2017 18:43:39 +0000 (11:43 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 31 May 2017 18:43:43 +0000 (11:43 -0700)
commit2b03ef9540efe96623ccf4119b78d4e21fe0cfc2
treea128b273370a2d2cf474b724a99b48de5f950576
parent95bd35d3db195f7fd27bffc1b5f908b9b9bb84bd
ovsdb-client: Use correct operand to 'sizeof' in do_dump().

When copying an object, one must calculate the size of the object itself,
not of its address.

No visible effect, though, since both the object and its address are
pointers in this case.

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762869&defectInstanceId=4304032&mergedDefectId=179550
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
ovsdb/ovsdb-client.c