diff options
-rw-r--r-- | source3/libsmb/clikrb5.c | 4 |
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); } |