summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2018-11-21 10:21:46 +0100
committerRalph Boehme <slow@samba.org>2018-11-22 08:22:18 +0100
commita3dd28c635206272673ea1f62b35121c7e808db4 (patch)
treecbe249d03609a9f463202adf99521ab55dbb83b3 /source3/client
parent02514427dba74325510137655a3788e70e29c82d (diff)
downloadsamba-a3dd28c635206272673ea1f62b35121c7e808db4.tar.gz
smbspool: Free kerberos context on error
If processing cannot continue and the function returns the kerberos context must be free'd. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index 389e4ea553f..58ce6c56177 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -523,6 +523,7 @@ static bool kerberos_ccache_is_valid(void) {
ccache_name = krb5_cc_default_name(ctx);
if (ccache_name == NULL) {
+ krb5_free_context(ctx);
return false;
}