Pull fix from branch_1_1
authoraland <aland>
Fri, 23 Feb 2007 10:07:09 +0000 (10:07 +0000)
committeraland <aland>
Fri, 23 Feb 2007 10:07:09 +0000 (10:07 +0000)
1  2 
src/modules/rlm_eap/libeap/eapcommon.c

@@@ -388,7 -385,8 +388,8 @@@ void map_eap_types(RADIUS_PACKET *req
                ep.id   = id;
                ep.type.type = eap_type;
                ep.type.length = vp->length;
-               ep.type.data = vp->vp_octets;
+               ep.type.data = malloc(vp->length);
 -              memcpy(ep.type.data,vp->strvalue, vp->length);
++              memcpy(ep.type.data,vp->vp_octets, vp->length);
                eap_basic_compose(req, &ep);
        }
  }