From: Arran Cudbard-Bell Date: Sun, 4 Oct 2015 22:55:52 +0000 (-0400) Subject: Formatting X-Git-Tag: release_3_0_10~7 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=782609a39b7f8369d3ec2a81985c071c85164942;p=freeradius.git Formatting --- diff --git a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c index abb5479..8cf9094 100644 --- a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c +++ b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c @@ -689,7 +689,7 @@ packet_ready: RDEBUG2("MSCHAP-Error: %s", response->vp_strvalue); /* - * Pxarse the new challenge out of the + * Parse the new challenge out of the * MS-CHAP-Error, so that if the client * issues a re-try, we will know which * challenge value that they used. diff --git a/src/modules/rlm_mschap/rlm_mschap.c b/src/modules/rlm_mschap/rlm_mschap.c index d6fe3d6..a57d15f 100644 --- a/src/modules/rlm_mschap/rlm_mschap.c +++ b/src/modules/rlm_mschap/rlm_mschap.c @@ -1570,9 +1570,9 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r * we then extract the response, add it into the request * then jump into mschap2 auth with the chal/resp */ - uint8_t new_nt_encrypted[516], old_nt_encrypted[NT_DIGEST_LENGTH]; - VALUE_PAIR *nt_enc=NULL; - int seq, new_nt_enc_len=0; + uint8_t new_nt_encrypted[516], old_nt_encrypted[NT_DIGEST_LENGTH]; + VALUE_PAIR *nt_enc=NULL; + int seq, new_nt_enc_len=0; RDEBUG("MS-CHAPv2 password change request received"); @@ -1751,7 +1751,8 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r chap = 1; - } else if ((response = fr_pair_find_by_num(request->packet->vps, PW_MSCHAP2_RESPONSE, VENDORPEC_MICROSOFT, TAG_ANY)) != NULL) { + } else if ((response = fr_pair_find_by_num(request->packet->vps, PW_MSCHAP2_RESPONSE, + VENDORPEC_MICROSOFT, TAG_ANY)) != NULL) { int mschap_result; uint8_t mschapv1_challenge[16]; VALUE_PAIR *name_attr, *response_name; @@ -1851,12 +1852,11 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r mschap_result = do_mschap(inst, request, nt_password, mschapv1_challenge, response->vp_octets + 26, nthashhash, auth_method); - if (mschap_result == -648) - goto password_expired; + if (mschap_result == -648) goto password_expired; if (mschap_result < 0) { - int i; - char buffer[128]; + int i; + char buffer[128]; REDEBUG("MS-CHAP2-Response is incorrect");