In pa_sam, remove a gratuitous null check for etype which was
authorGreg Hudson <ghudson@mit.edu>
Mon, 13 Apr 2009 18:43:29 +0000 (18:43 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Apr 2009 18:43:29 +0000 (18:43 +0000)
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

index ed4708e1bfffe320378684a8fe40e682731c81eb..3d4329eb6eb8d3e619f1dc506e74db7edeb3e5b0 100644 (file)
@@ -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,