From: Greg Hudson Date: Thu, 7 May 2009 19:42:57 +0000 (+0000) Subject: After consultation with kenh, remove a comment and if statement which X-Git-Tag: krb5-1.8-alpha1~485 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8eb13e1a4ed504c1db92b363fb19d0b4efad64e6;p=krb5.git After consultation with kenh, remove a comment and if statement which 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 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index f72ebf29c..e6f4215d5 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -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); /*