From: Greg Hudson Date: Mon, 13 Apr 2009 18:43:29 +0000 (+0000) Subject: In pa_sam, remove a gratuitous null check for etype which was X-Git-Tag: krb5-1.8-alpha1~542 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60;p=krb5.git In pa_sam, remove a gratuitous null check for etype which was immediately followed by dereferencing etype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22199 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index ed4708e1b..3d4329eb6 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -871,7 +871,7 @@ krb5_error_code pa_sam(krb5_context context, /* message from the KDC. If it is not set, pick an enctype that we */ /* think the KDC will have for us. */ - if (etype && *etype == 0) + if (*etype == 0) *etype = ENCTYPE_DES_CBC_CRC; if ((ret = (gak_fct)(context, request->client, *etype, prompter,