From: Alan T. DeKok Date: Wed, 8 May 2019 14:34:53 +0000 (-0400) Subject: VPS are allocated from the request ctx X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20eec99a1e7346dcee7eafe4d5f7a363c956bbd;p=thirdparty%2Ffreeradius-server.git VPS are allocated from the request ctx --- diff --git a/src/modules/proto_dhcpv4/dhcpclient.c b/src/modules/proto_dhcpv4/dhcpclient.c index c7f4247b6b8..6a1c0791128 100644 --- a/src/modules/proto_dhcpv4/dhcpclient.c +++ b/src/modules/proto_dhcpv4/dhcpclient.c @@ -168,10 +168,11 @@ static RADIUS_PACKET *request_init(char const *filename) } request = fr_radius_alloc(NULL, false); + /* * Read the VP's. */ - if (fr_pair_list_afrom_file(NULL, dict_dhcpv4, &request->vps, fp, &filedone) < 0) { + if (fr_pair_list_afrom_file(request, dict_dhcpv4, &request->vps, fp, &filedone) < 0) { fr_perror("dhcpclient"); fr_radius_packet_free(&request); if (fp != stdin) fclose(fp);