diff options
author | Gerald Carter <jerry@samba.org> | 2002-11-15 17:56:46 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-11-15 17:56:46 +0000 |
commit | 53c1b22adc500e7d6f9094cba6e5cb4226079d83 (patch) | |
tree | 0273d6ca313f2696f2da3d1cc958d855c3f41c10 /source3/libsmb | |
parent | 74cdd691a9aabd01984892848fe3487cd2a10f1b (diff) | |
download | samba-53c1b22adc500e7d6f9094cba6e5cb4226079d83.tar.gz samba-53c1b22adc500e7d6f9094cba6e5cb4226079d83.tar.bz2 samba-53c1b22adc500e7d6f9094cba6e5cb4226079d83.zip |
fix segfault
(This used to be commit 32ca3afa5486b1b04118e9f144bfdf4b3702d118)
Diffstat (limited to 'source3/libsmb')
-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); } |