diff options
author | Günther Deschner <gd@samba.org> | 2009-03-20 11:11:04 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-20 11:11:04 +0100 |
commit | 97190ae184dff6450b1390c854f7426e2ee3f980 (patch) | |
tree | f3f65657159e17f1eb05cd9650ebac79b8406933 | |
parent | 73030b107d5722a2c42cd18240d45bcb256335ac (diff) | |
download | samba-97190ae184dff6450b1390c854f7426e2ee3f980.tar.gz samba-97190ae184dff6450b1390c854f7426e2ee3f980.tar.bz2 samba-97190ae184dff6450b1390c854f7426e2ee3f980.zip |
s3-krb5: Fix Coverity #762 (REVERSE_INULL).
Guenther
-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); } |