Fix for use_tunneled_reply
authoraland <aland>
Fri, 13 Jul 2007 09:37:52 +0000 (09:37 +0000)
committeraland <aland>
Fri, 13 Jul 2007 09:37:52 +0000 (09:37 +0000)
src/modules/rlm_eap/types/rlm_eap_ttls/rlm_eap_ttls.c

index 7cd8eb7..5ece90d 100644 (file)
@@ -193,8 +193,9 @@ static int eapttls_authenticate(void *arg, EAP_HANDLER *handler)
        case EAPTLS_SUCCESS:
                if (t->authenticated) {
                        if (t->reply) {
-                               pairadd(&handler->request->reply->vps, t->reply);
-                               t->reply = NULL;
+                               pairmove(&handler->request->reply->vps,
+                                        &t->reply);
+                               pairfree(&t->reply);
                        }
                        eaptls_success(handler->eap_ds, 0);
                        eaptls_gen_mppe_keys(&handler->request->reply->vps,