append tunneled reply, rather than moving it
authorAlan T. DeKok <aland@freeradius.org>
Wed, 14 Apr 2010 03:00:39 +0000 (05:00 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 14 Apr 2010 08:52:49 +0000 (10:52 +0200)
This means that the operators are ignored, and any proxied
packet (with operators '=' for multiple VSAs of the same name) will
get handled properly.

src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c

index 4f2c42c..007f5b0 100644 (file)
@@ -309,7 +309,7 @@ static int eappeap_authenticate(void *arg, EAP_HANDLER *handler)
                peap = tls_session->opaque;
                if (peap->accept_vps) {
                        RDEBUG2("Using saved attributes from the original Access-Accept");
-                       pairmove(&handler->request->reply->vps, &peap->accept_vps);
+                       pairadd(&handler->request->reply->vps, &peap->accept_vps);
                        pairfree(&peap->accept_vps);
                }