]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct method to return a locally created list
authorNick Porter <nick@portercomputing.co.uk>
Mon, 11 Jan 2021 08:58:27 +0000 (08:58 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/modules/rlm_client/rlm_client.c

index 5da170c2e38ad6e0aad89820d093997543a557f2..0b808bf1a3a936cacdcca718f2cf35ccfe0159cd 100644 (file)
@@ -96,7 +96,7 @@ static int _map_proc_client_get_vp(TALLOC_CTX *ctx, fr_pair_list_t *out, request
                if (map->op != T_OP_ADD) break; /* Create multiple attribute for multiple CONF_PAIRs */
        }
 
-       *out = head;
+       fr_tmp_pair_list_move(out, &head);
 
        return 0;
 }