From: Alan T. DeKok Date: Wed, 22 Nov 2017 20:39:58 +0000 (-0500) Subject: secrets are talloc'd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ec2ce48dd52407023e1d883f08d5f4b2fe172b;p=thirdparty%2Ffreeradius-server.git secrets are talloc'd --- diff --git a/src/modules/proto_radius/proto_radius_udp.c b/src/modules/proto_radius/proto_radius_udp.c index 9120053ffc5..d4ff30baae0 100644 --- a/src/modules/proto_radius/proto_radius_udp.c +++ b/src/modules/proto_radius/proto_radius_udp.c @@ -396,7 +396,7 @@ static ssize_t dynamic_client_alloc(proto_radius_udp_t *inst, uint8_t *packet, s FR_DLIST_INIT(client->packets); client->active = false; client->dynamic = true; - client->secret = client->longname = client->shortname = client->nas_type = ""; + client->secret = client->longname = client->shortname = client->nas_type = talloc_strdup(client, ""); client->ipaddr = address->src_ipaddr; client->src_ipaddr = address->dst_ipaddr;