From: Ken Raeburn Date: Sat, 29 Mar 2008 01:10:04 +0000 (+0000) Subject: Coverity CID 46: mech_type will always have the address of an X-Git-Tag: krb5-1.7-alpha1~699 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ede433da9ba2514bcbaa49cf413f1ecb3fd23fcb;p=krb5.git Coverity CID 46: mech_type will always have the address of an automatic variable, so can never be null (GSS_C_NULL_OID). Delete null check and unreachable conditional code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20299 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/mechglue/g_dsp_status.c b/src/lib/gssapi/mechglue/g_dsp_status.c index 881bd7669..be6bc8032 100644 --- a/src/lib/gssapi/mechglue/g_dsp_status.c +++ b/src/lib/gssapi/mechglue/g_dsp_status.c @@ -121,9 +121,6 @@ gss_buffer_t status_string; if (mech && mech->gss_display_status) { OM_uint32 r; - if (mech_type == GSS_C_NULL_OID) - mech_type = &mech->mech_type; - r = mech->gss_display_status(mech->context, minor_status, status_value, status_type, mech_type, message_context, status_string);