summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-11-15 17:57:25 +0000
committerGerald Carter <jerry@samba.org>2002-11-15 17:57:25 +0000
commitf2e3b68ce6db8b06f5ea4c8cc969cc1b8e4d9bd9 (patch)
tree2c9b28fdf2f1ea851e0ee3455da18b3e6147c112
parent0899eed4ab161030732f61988f55b0879de5c5ad (diff)
downloadsamba-f2e3b68ce6db8b06f5ea4c8cc969cc1b8e4d9bd9.tar.gz
samba-f2e3b68ce6db8b06f5ea4c8cc969cc1b8e4d9bd9.tar.bz2
samba-f2e3b68ce6db8b06f5ea4c8cc969cc1b8e4d9bd9.zip
fix segfault
(This used to be commit 36bcb312e95f46d196575ed3535679deeddd89b0)
-rw-r--r--source3/libsmb/clikrb5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index e7143d065d..54a8a6ffe8 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -147,7 +147,9 @@ DATA_BLOB krb5_get_ticket(char *principal, time_t time_offset)
return ret;
failed:
- krb5_free_context(context);
+ if ( context )
+ krb5_free_context(context);
+
return data_blob(NULL, 0);
}