diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 7346804c18c83904bb1f8d8396adc3b68af0e07d..59609b0a03f9b77c5183dcdc6439dacb2deca709 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -2253,7 +2253,8 @@ virLXCControllerEventSend(virLXCControllerPtr ctrl, goto error; VIR_DEBUG("Queue event %d %zu", procnr, msg->bufferLength); - virNetServerClientSendMessage(ctrl->client, msg); + if (virNetServerClientSendMessage(ctrl->client, msg) < 0) + goto error; xdr_free(proc, data); return;