[PATCH 03/14] virnetserver: Need to initialize 'sigdata'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It was possible to call VIR_FREE in error prior to initialization
---
 src/rpc/virnetserver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index cbbc986..95333d0 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -926,7 +926,7 @@ int virNetServerAddSignalHandler(virNetServerPtr srv,
                                  virNetServerSignalFunc func,
                                  void *opaque)
 {
-    virNetServerSignalPtr sigdata;
+    virNetServerSignalPtr sigdata = NULL;
     struct sigaction sig_action;
 
     virObjectLock(srv);
-- 
1.7.11.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]