]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use correct function to trim strings
authorNick Porter <nick@portercomputing.co.uk>
Tue, 29 Oct 2024 14:57:40 +0000 (14:57 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 4 Nov 2024 10:29:45 +0000 (10:29 +0000)
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index e6011028af61708d2ee5abe02506168fbad8573e..18d8023a68f6ee91459434d9232dbd4d27b667ce 100644 (file)
@@ -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);
        }
 
        /*