]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix API for 3.0
authorAlan T. DeKok <aland@freeradius.org>
Wed, 25 May 2011 12:56:02 +0000 (14:56 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 25 May 2011 12:56:02 +0000 (14:56 +0200)
src/modules/rlm_replicate/rlm_replicate.c

index c3287416a2fa028ee191028b00e83992000c28a6..2fc4fa25c6637f88a9325a33ab3ed18c240f1135 100644 (file)
@@ -55,7 +55,7 @@ static int replicate_packet(void *instance, REQUEST *request)
         *      destinations.
         */
        while (1) {
-               vp = pairfind(last, PW_REPLICATE_TO_REALM);
+               vp = pairfind(last, PW_REPLICATE_TO_REALM, 0);
                if (!vp) break;
 
                last = vp->next;
@@ -133,10 +133,10 @@ static int replicate_packet(void *instance, REQUEST *request)
                         *      it doesn't exist.
                         */
                        if ((request->packet->code == PW_AUTHENTICATION_REQUEST) &&
-                           (pairfind(request->packet->vps, PW_CHAP_PASSWORD) != NULL) &&
-                           (pairfind(request->packet->vps, PW_CHAP_CHALLENGE) == NULL)) {
+                           (pairfind(request->packet->vps, PW_CHAP_PASSWORD, 0) != NULL) &&
+                           (pairfind(request->packet->vps, PW_CHAP_CHALLENGE, 0) == NULL)) {
                                vp = radius_paircreate(request, &packet->vps,
-                                                      PW_CHAP_CHALLENGE,
+                                                      PW_CHAP_CHALLENGE, 0,
                                                       PW_TYPE_OCTETS);
                                vp->length = AUTH_VECTOR_LEN;
                                memcpy(vp->vp_strvalue, request->packet->vector,