summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-04-13 18:43:29 +0000
committerGreg Hudson <ghudson@mit.edu>2009-04-13 18:43:29 +0000
commit9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60 (patch)
treefc2aefdf0eb474f59439f0a84cc225b988ce36b1 /src
parentebc7a7f22a7484542ff10746ecb6f82569a5a688 (diff)
downloadkrb5-9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60.tar.gz
krb5-9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60.tar.xz
krb5-9231fa3d6d8cfc36f6f5df0ba791c5bb7cc11c60.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/preauth2.c2
1 files changed, 1 insertions, 1 deletions
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,