diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-07-11 14:35:49 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-08-07 11:47:41 +0100 |
commit | 0b4d3fe556482bf481609ed01b825058889a24c5 (patch) | |
tree | a2953e629167cab269888af52fe80070f8c390c6 /daemon | |
parent | Turn virNetTLSContext and virNetTLSSession into virObject instances (diff) | |
download | libvirt-0b4d3fe556482bf481609ed01b825058889a24c5.tar.gz libvirt-0b4d3fe556482bf481609ed01b825058889a24c5.tar.bz2 libvirt-0b4d3fe556482bf481609ed01b825058889a24c5.zip |
Turn virNetSASLContext and virNetSASLSession into virObject instances
Make virNetSASLContext and virNetSASLSession use virObject APIs
for reference counting
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/remote.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/remote.c b/daemon/remote.c index d25717c5e..832307e35 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -2325,7 +2325,7 @@ authfail: PROBE(RPC_SERVER_CLIENT_AUTH_FAIL, "client=%p auth=%d", client, REMOTE_AUTH_SASL); - virNetSASLSessionFree(sasl); + virObjectUnref(sasl); virMutexUnlock(&priv->lock); return -1; } @@ -2369,7 +2369,7 @@ remoteSASLFinish(virNetServerClientPtr client) "client=%p auth=%d identity=%s", client, REMOTE_AUTH_SASL, identity); - virNetSASLSessionFree(priv->sasl); + virObjectUnref(priv->sasl); priv->sasl = NULL; return 0; @@ -2467,7 +2467,7 @@ authdeny: goto error; error: - virNetSASLSessionFree(priv->sasl); + virObjectUnref(priv->sasl); priv->sasl = NULL; virResetLastError(); virReportError(VIR_ERR_AUTH_FAILED, "%s", @@ -2565,7 +2565,7 @@ authdeny: goto error; error: - virNetSASLSessionFree(priv->sasl); + virObjectUnref(priv->sasl); priv->sasl = NULL; virResetLastError(); virReportError(VIR_ERR_AUTH_FAILED, "%s", |