summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-08 18:48:04 -0800
committerJeremy Allison <jra@samba.org>2008-01-08 18:48:04 -0800
commitb47d491489ae6161f0c04378ed15dc1a54a166e1 (patch)
tree4e51a00c51d2eb7c18900a3c5cdb7bd8c0465aac /source3/auth
parent2371d31f64e8b1238e86d86c5b6f20ac5a842799 (diff)
downloadsamba-b47d491489ae6161f0c04378ed15dc1a54a166e1.tar.gz
samba-b47d491489ae6161f0c04378ed15dc1a54a166e1.tar.bz2
samba-b47d491489ae6161f0c04378ed15dc1a54a166e1.zip
Fix CID 460 - resource leak on error.
Jeremy. (This used to be commit d61831164b482d02e0eef3c28aeed93d3e44433f)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 9f90ef8ccd..095f0b9fb8 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -75,6 +75,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
connection (tridge) */
if (!grab_server_mutex(desthost)) {
+ cli_shutdown(cli);
return NULL;
}