libvirt/src/rpc
Marc Hartmayer d6bc7622f0 rpc: Fix potentially segfaults
We have to allocate first and if, and only if, it was successful we
can set the count. A segfault has occurred in
virNetServerServiceNewPostExecRestart() when VIR_ALLOC_N(svc->socks,
n) has failed, but svc->nsocsk = n was already set. Thus
virObejectUnref(svc) was called and therefore it was possible that
virNetServerServiceDispose was called => segmentation fault.  For
safeness NULL pointer check were added in
virNetServerServiceDispose().

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
2017-02-12 15:02:42 -05:00
..
gendispatch.pl
genprotocol.pl genprotocol.pl: add darwin to fixup list 2016-11-24 17:17:43 +03:00
gensystemtap.pl
virkeepalive.c
virkeepalive.h
virkeepaliveprotocol.x
virnetclient.c remote: do not check for an existing config dir 2017-01-11 13:38:04 +01:00
virnetclient.h remote: expose a new libssh transport 2016-11-15 15:50:51 +01:00
virnetclientprogram.c
virnetclientprogram.h
virnetclientstream.c
virnetclientstream.h
virnetdaemon.c
virnetdaemon.h
virnetlibsshsession.c rpc: libssh: allow a NULL known_hosts file 2017-01-11 13:37:24 +01:00
virnetlibsshsession.h libssh_transport: add new libssh-based transport 2016-11-15 15:50:51 +01:00
virnetmessage.c
virnetmessage.h
virnetprotocol.x
virnetsaslcontext.c
virnetsaslcontext.h
virnetserver.c
virnetserver.h
virnetserverclient.c
virnetserverclient.h
virnetservermdns.c
virnetservermdns.h
virnetserverprogram.c
virnetserverprogram.h
virnetserverservice.c rpc: Fix potentially segfaults 2017-02-12 15:02:42 -05:00
virnetserverservice.h
virnetsocket.c remote: expose a new libssh transport 2016-11-15 15:50:51 +01:00
virnetsocket.h remote: expose a new libssh transport 2016-11-15 15:50:51 +01:00
virnetsshsession.c
virnetsshsession.h
virnettlscontext.c
virnettlscontext.h