From: Arran Cudbard-Bell Date: Sat, 11 Feb 2023 02:13:19 +0000 (-0600) Subject: Don't crash when the first component is a HTTP method X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f108c5f2d561c70d595207abcbbdd7b7626acd;p=thirdparty%2Ffreeradius-server.git Don't crash when the first component is a HTTP method --- diff --git a/src/modules/rlm_rest/rlm_rest.c b/src/modules/rlm_rest/rlm_rest.c index e9d3b857b90..6723be598f9 100644 --- a/src/modules/rlm_rest/rlm_rest.c +++ b/src/modules/rlm_rest/rlm_rest.c @@ -439,7 +439,7 @@ static xlat_action_t rest_xlat(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out, */ } else { section->method = REST_HTTP_METHOD_CUSTOM; - MEM(section->method_str = talloc_bstrndup(rctx, in_vb->vb_strvalue, in_vb->vb_length)); + MEM(section->method_str = talloc_bstrndup(rctx, uri_vb->vb_strvalue, uri_vb->vb_length)); } /* * Move to next argument