diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-03-23 11:47:38 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-03-23 11:47:38 +1100 |
commit | 7f113904eba5361d963075bcea7e36fd98ca34aa (patch) | |
tree | 2d5f22f3418a3439c306b3aaf570f52ff1d0823e /source3/libads/kerberos.c | |
parent | 9709ddcd3db3a96ff4d86aa1a5daf7f9261f13d3 (diff) | |
parent | 979a1b06d01817a01967d9137e4f70f222fa8eab (diff) | |
download | samba-7f113904eba5361d963075bcea7e36fd98ca34aa.tar.gz samba-7f113904eba5361d963075bcea7e36fd98ca34aa.tar.bz2 samba-7f113904eba5361d963075bcea7e36fd98ca34aa.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/libads/kerberos.c')
-rw-r--r-- | source3/libads/kerberos.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 56d7b061a1..52cb975a6c 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -511,13 +511,13 @@ char *kerberos_get_default_realm_from_ccache( void ) out: - if (princ) { - krb5_free_principal(ctx, princ); - } - if (cc) { - krb5_cc_close(ctx, cc); - } if (ctx) { + if (princ) { + krb5_free_principal(ctx, princ); + } + if (cc) { + krb5_cc_close(ctx, cc); + } krb5_free_context(ctx); } |