mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
virnetserver: Need to initialize 'sigdata'
It was possible to call VIR_FREE in error prior to initialization
This commit is contained in:
parent
8164b0e804
commit
9b90644e7d
@ -926,7 +926,7 @@ int virNetServerAddSignalHandler(virNetServerPtr srv,
|
||||
virNetServerSignalFunc func,
|
||||
void *opaque)
|
||||
{
|
||||
virNetServerSignalPtr sigdata;
|
||||
virNetServerSignalPtr sigdata = NULL;
|
||||
struct sigaction sig_action;
|
||||
|
||||
virObjectLock(srv);
|
||||
|
Loading…
Reference in New Issue
Block a user