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)
src/modules/rlm_eap/libeap/eapcommon.c

index 9d4977b..d918f1a 100644 (file)
@@ -388,7 +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->vp_octets, vp->length);
                eap_basic_compose(req, &ep);
        }
 }