From 9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 13 Apr 2009 18:43:29 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/preauth2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2