aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-07-11 14:35:48 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-08-07 11:47:41 +0100
commite10e1969d51f07cc2a5d47a59506c73461423ad9 (patch)
tree2b23a769d138d1718bd632d7f3382f6ab4cd3093 /src/rpc/virnetserver.c
parentTurn qemuAgentPtr and qemuMonitorPtr into virObjectPtr instances (diff)
downloadlibvirt-e10e1969d51f07cc2a5d47a59506c73461423ad9.tar.gz
libvirt-e10e1969d51f07cc2a5d47a59506c73461423ad9.tar.bz2
libvirt-e10e1969d51f07cc2a5d47a59506c73461423ad9.zip
Turn virNetTLSContext and virNetTLSSession into virObject instances
Make virNetTLSContext and virNetTLSSession use the virObject APIs for reference counting Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/rpc/virnetserver.c')
-rw-r--r--src/rpc/virnetserver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index 295e8fd8a..afe7640dd 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -642,8 +642,7 @@ no_memory:
int virNetServerSetTLSContext(virNetServerPtr srv,
virNetTLSContextPtr tls)
{
- srv->tls = tls;
- virNetTLSContextRef(tls);
+ srv->tls = virObjectRef(tls);
return 0;
}