From: Nick Porter Date: Tue, 29 Oct 2024 14:57:40 +0000 (+0000) Subject: Use correct function to trim strings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a324314127e481af0080d49fbce55db2e6d45c01;p=thirdparty%2Ffreeradius-server.git Use correct function to trim strings --- diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c index e6011028af6..18d8023a68f 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -314,7 +314,7 @@ static ssize_t eap_ttls_decode_pair(request_t *request, TALLOC_CTX *ctx, fr_pair /* * Diameter pads strings (i.e. User-Password) with trailing zeros. */ - if (vp->vp_type == FR_TYPE_STRING) fr_pair_value_strdup(vp, vp->vp_strvalue, vp->vp_tainted); + if (vp->vp_type == FR_TYPE_STRING) fr_pair_value_strtrim(vp); } /*