Skip to content

Commit

Permalink
Free previous accept VPS. Closes #693
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jun 18, 2014
1 parent 5c9c917 commit 44d3a57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/rlm_eap/types/rlm_eap_peap/peap.c
Expand Up @@ -463,7 +463,7 @@ static int CC_HINT(nonnull) process_reply(eap_handler_t *handler, tls_session_t
pairdelete(&reply->vps, 16, VENDORPEC_MICROSOFT, TAG_ANY);
pairdelete(&reply->vps, 17, VENDORPEC_MICROSOFT, TAG_ANY);

rad_assert(!t->accept_vps);
pairfree(&t->accept_vps); /* for proxying MS-CHAP2 */
pairfilter(t, &t->accept_vps, &reply->vps, 0, 0, TAG_ANY);
rad_assert(!reply->vps);
}
Expand Down Expand Up @@ -512,8 +512,7 @@ static int CC_HINT(nonnull) process_reply(eap_handler_t *handler, tls_session_t
pairdelete(&reply->vps, PW_MESSAGE_AUTHENTICATOR, 0, TAG_ANY);

rad_assert(!t->accept_vps);
pairfilter(t, &t->accept_vps, &reply->vps,
0, 0, TAG_ANY);
pairfilter(t, &t->accept_vps, &reply->vps, 0, 0, TAG_ANY);
rad_assert(!reply->vps);
}

Expand Down

0 comments on commit 44d3a57

Please sign in to comment.