After consultation with kenh, remove a comment and if statement which
authorGreg Hudson <ghudson@mit.edu>
Thu, 7 May 2009 19:42:57 +0000 (19:42 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 7 May 2009 19:42:57 +0000 (19:42 +0000)
should no longer apply to the pa_sam_2 code, fixing a memory leak.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22322 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/preauth2.c

index f72ebf29cdfdaf8a93db6a318a41341140a5c16d..e6f4215d5c4d0502db51e6077591fc575eefbc3d 100644 (file)
@@ -1607,13 +1607,6 @@ krb5_error_code pa_sam_2(krb5_context context,
    }
 
    if (!valid_cksum) {
-
-       /* If KRB5_SAM_SEND_ENCRYPTED_SAD is set, then password is only */
-       /* source for checksum key.  Therefore, a bad checksum means a  */
-       /* bad password.  Don't give that direct feedback to someone    */
-       /* trying to brute-force passwords.                             */
-
-       if (!(sc2b->sam_flags & KRB5_SAM_SEND_ENCRYPTED_SAD))
        krb5_free_sam_challenge_2(context, sc2);
        krb5_free_sam_challenge_2_body(context, sc2b);
        /*