Fixes for porting to "stable" branch
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Oct 2010 15:21:10 +0000 (17:21 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Oct 2010 15:21:10 +0000 (17:21 +0200)
src/modules/rlm_eap/types/rlm_eap_peap/peap.c

index 9d4d81c..9917800 100644 (file)
@@ -1000,7 +1000,7 @@ int eappeap_process(EAP_HANDLER *handler, tls_session_t *tls_session)
 
        setup_fake_request(request, fake, t);
 
-       if ((vp = pairfind(request->config_items, PW_VIRTUAL_SERVER)) != NULL) {
+       if ((vp = pairfind(request->config_items, PW_VIRTUAL_SERVER, 0)) != NULL) {
                fake->server = vp->vp_strvalue;
 
        } else if (t->virtual_server) {
@@ -1300,7 +1300,7 @@ static int setup_fake_request(REQUEST *request, REQUEST *fake, peap_tunnel_t *t)
                         *      Don't copy from the head, we've already
                         *      checked it.
                         */
-                       copy = paircopy2(vp, vp->attribute);
+                       copy = paircopy2(vp, vp->attribute, vp->vendor);
                        pairadd(&fake->packet->vps, copy);
                }
        }