/*
* Keep a copy of the the User-Password attribute.
*/
- if ((vp = pairfind(radclient->request->vps, PW_PASSWORD)) != NULL) {
+ if ((vp = pairfind(radclient->request->vps, PW_USER_PASSWORD)) != NULL) {
strNcpy(radclient->password, vp->vp_strvalue,
sizeof(radclient->password));
/*
if (radclient->password[0] != '\0') {
VALUE_PAIR *vp;
- if ((vp = pairfind(radclient->request->vps, PW_PASSWORD)) != NULL) {
+ if ((vp = pairfind(radclient->request->vps, PW_USER_PASSWORD)) != NULL) {
strNcpy(vp->vp_strvalue, radclient->password,
sizeof(vp->vp_strvalue));
vp->length = strlen(vp->vp_strvalue);
return -1; /* got reply to packet we didn't send */
}
radclient = lrad_packet2myptr(radclient_t, request, request_p);
- lrad_packet_list_yank(pl, radclient->request);
- deallocate_id(radclient);
- radclient->reply = reply;
/*
* Fails the signature validation: not a real reply.
goto packet_done; /* shared secret is incorrect */
}
+ lrad_packet_list_yank(pl, radclient->request);
+ deallocate_id(radclient);
+ radclient->reply = reply;
+
/*
* If this fails, we're out of memory.
*/