]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Replicated packet should be allocated in the request context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 13 Sep 2013 12:32:20 +0000 (13:32 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 13 Sep 2013 12:32:36 +0000 (13:32 +0100)
src/modules/rlm_replicate/rlm_replicate.c

index 03542fc8995462479f48e97a8a8049c07bc7f816..c0521796c6bd77e737a8ea58925a6dfdcdd087aa 100644 (file)
@@ -121,7 +121,7 @@ static int replicate_packet(UNUSED void *instance, REQUEST *request,
                 *      we built here.
                 */
                if (!packet) {
-                       packet = rad_alloc(NULL, 1);
+                       packet = rad_alloc(request, 1);
                        if (!packet) return RLM_MODULE_FAIL;
                        packet->sockfd = -1;
                        packet->code = code;
@@ -155,8 +155,6 @@ static int replicate_packet(UNUSED void *instance, REQUEST *request,
                                }
                        }
 
-
-
                        /*
                         *      For CHAP, create the CHAP-Challenge if
                         *      it doesn't exist.