summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-12-17 14:03:50 +0100
committerGünther Deschner <gd@samba.org>2012-12-21 13:56:00 +0100
commit568bade612f1969ed92e9fe4d04088b08545ad8b (patch)
treeda5d76c0356bb3499fa9c7c8a537306b628faeda
parent24a897f029dd92a6341ef29e99291c01be928650 (diff)
downloadsamba-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>
-rw-r--r--lib/krb5_wrap/krb5_samba.c9
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);