From b61c9c4055c4e69bc849122d1f06eddf56ec95a7 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 29 Mar 2008 01:09:26 +0000 Subject: [PATCH] Coverity CID 91: Context is tested for null, and then unconditionally dereferenced. Remove unneeded null check. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20297 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/accept_sec_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/accept_sec_context.c b/src/lib/gssapi/krb5/accept_sec_context.c index 1100b1732..9eccef243 100644 --- a/src/lib/gssapi/krb5/accept_sec_context.c +++ b/src/lib/gssapi/krb5/accept_sec_context.c @@ -995,7 +995,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle, if (!verifier_cred_handle && cred_handle) { krb5_gss_release_cred(minor_status, &cred_handle); } - if (major_status && *minor_status && context) + if (major_status && *minor_status) save_error_info(*minor_status, context); krb5_free_context(context); return (major_status); -- 2.26.2