Parent from the packet, not head of the VP list
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jun 2014 11:35:23 +0000 (12:35 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Jun 2014 11:35:23 +0000 (12:35 +0100)
src/modules/rlm_files/rlm_files.c

index 8cb8983..cfe0e2c 100644 (file)
@@ -435,7 +435,7 @@ static rlm_rcode_t file_common(rlm_files_t *inst, REQUEST *request, char const *
                        found = 1;
 
                        /* ctx may be reply or proxy */
-                       reply_tmp = paircopy(reply_packet->vps, pl->reply);
+                       reply_tmp = paircopy(reply_packet, pl->reply);
                        radius_pairmove(request, &reply_packet->vps, reply_tmp, true);
                        pairmove(request, &request->config_items, &check_tmp);
                        pairfree(&check_tmp);