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 rpcgen: Add support for generating funcs returning alloc'd typed params 2016-06-22 08:15:45 +02:00
genprotocol.pl genprotocol.pl: add darwin to fixup list 2016-11-24 17:17:43 +03:00
gensystemtap.pl build: predictably generate systemtap tapsets (bz 1173641) 2016-01-20 10:26:02 -05:00
virkeepalive.c client rpc: Report proper error for keepalive disconnections 2015-09-23 13:09:49 +02:00
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: Process stream messages later 2016-05-02 07:56:38 +02:00
virnetclientstream.h
virnetdaemon.c rpc: daemon: Fix virtlog/virtlock daemon reload 2016-04-13 11:07:21 -04:00
virnetdaemon.h Change virNetDaemonGetServerNames to virNetDaemonGetServers 2016-03-11 12:58:41 +01:00
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 rpc: use virNetMessageClearPayload in client 2016-05-05 14:28:19 -04:00
virnetmessage.h rpc: use virNetMessageClearPayload in client 2016-05-05 14:28:19 -04:00
virnetprotocol.x rpc: protocol: Clarify VIR_NET_ERROR usage with streams 2016-05-02 10:13:04 -04:00
virnetsaslcontext.c
virnetsaslcontext.h build: workaround broken SASL header (again) 2016-03-31 17:36:49 +02:00
virnetserver.c rpc: virnetserver: Remove dead code checking the client limits 2016-08-02 14:51:13 +02:00
virnetserver.h rpc: virnetserver: Rename ClientSetProcessingControls to ClientSetLimits 2016-08-02 14:51:13 +02:00
virnetserverclient.c Fix possible invalid read in adminClientGetInfo 2016-06-29 16:13:12 +02:00
virnetserverclient.h Fix possible invalid read in adminClientGetInfo 2016-06-29 16:13:12 +02:00
virnetservermdns.c mdns: Set error when failing due to missing avahi 2015-06-05 13:41:35 +02:00
virnetservermdns.h
virnetserverprogram.c virNet{Client,Server}*Stream: Update comment 2016-04-21 16:29:41 +02:00
virnetserverprogram.h daemonClientStream: Use unsigned int to store stream @serial 2016-04-21 16:29:41 +02:00
virnetserverservice.c rpc: Fix potentially segfaults 2017-02-12 15:02:42 -05:00
virnetserverservice.h rpc: allow selection of TCP address family 2015-06-11 12:11:18 +01:00
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 build: add GCC 6.0 -Wlogical-op workaround 2016-04-11 12:09:14 +02:00
virnetsshsession.h
virnettlscontext.c rpc: allow priority string to be passed to TLS context 2016-06-08 13:48:45 +01:00
virnettlscontext.h rpc: allow priority string to be passed to TLS context 2016-06-08 13:48:45 +01:00