diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-17 14:03:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:00 +0100 |
commit | 568bade612f1969ed92e9fe4d04088b08545ad8b (patch) | |
tree | da5d76c0356bb3499fa9c7c8a537306b628faeda /lib | |
parent | 24a897f029dd92a6341ef29e99291c01be928650 (diff) | |
download | samba-568bade612f1969ed92e9fe4d04088b08545ad8b.tar.gz samba-568bade612f1969ed92e9fe4d04088b08545ad8b.tar.bz2 samba-568bade612f1969ed92e9fe4d04088b08545ad8b.zip |
krb5_wrap: Remove dead code in smb_krb5_renew_ticket().
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index f04f6e1837..ffb3f8d00d 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -816,7 +816,7 @@ done: krb5_context context = NULL; krb5_ccache ccache = NULL; krb5_principal client = NULL; - krb5_creds creds, creds_in, *creds_out = NULL; + krb5_creds creds, creds_in; ZERO_STRUCT(creds); ZERO_STRUCT(creds_in); @@ -876,12 +876,7 @@ done: done: krb5_free_cred_contents(context, &creds_in); - - if (creds_out) { - krb5_free_creds(context, creds_out); - } else { - krb5_free_cred_contents(context, &creds); - } + krb5_free_cred_contents(context, &creds); if (client) { krb5_free_principal(context, client); |