aboutsummaryrefslogtreecommitdiff
path: root/slirp/cksum.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-03-19 08:58:54 +0100
committerAndreas Färber <afaerber@suse.de>2014-03-19 22:01:34 +0100
commitc6aed9833419eed9de19919ff31aa021a6171521 (patch)
treec436d4aa0b2bbf46aee9264ad5a7f7fd5716e918 /slirp/cksum.c
parentf5ec6704c73932291c303d0cf72352ac26411d0d (diff)
qom: Don't make link NULL on object_property_set_link() failure
The error behavior of object_property_set_link() is dangerous. It sets the link property object to NULL if an error occurs. A setter function should either succeed or fail, it shouldn't leave the value NULL on failure. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'slirp/cksum.c')
0 files changed, 0 insertions, 0 deletions