-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
defectcategory: a defect or misbehaviourcategory: a defect or misbehaviour
Description
What type of defect/bug is this?
Unexpected behaviour
How can the issue be reproduced?
While working on #5668, I came across what I think are three bugs. I didn't want to make PRs for them because I might be wrong but, I thought better to create a single issue. All issues relate to github.com/FreeRADIUS/freeradius-server/blob/7e538657fe05325cbd84453fc034d3a9b8598735/src/modules/rlm_ftp/rlm_ftp.c.
- The wrong variable is logged in here:
freeradius-server/src/modules/rlm_ftp/rlm_ftp.c
Lines 217 to 219 in 7e53865
if ((ctx->instance->max_resp_size > 0) && ((ctx->used + (end - p)) > ctx->instance->max_resp_size)) { REDEBUG("Incoming data (%zu bytes) exceeds max_body_in (%zu bytes). " "Forcing body to type 'invalid'", ctx->used + (end - p), ctx->instance->max_resp_size); - I think this is missing a
curl_ctx->response.request = request;https://github.com/FreeRADIUS/freeradius-server/blob/7e538657fe05325cbd84453fc034d3a9b8598735/src/modules/rlm_ftp/rlm_ftp.c#L296C2-L296C17 so this works https://github.com/FreeRADIUS/freeradius-server/blob/7e538657fe05325cbd84453fc034d3a9b8598735/src/modules/rlm_ftp/rlm_ftp.c#L209C14-L209C21
Log output from the FreeRADIUS daemon
n/aRelevant log output from client utilities
No response
Backtrace from LLDB or GDB
Metadata
Metadata
Assignees
Labels
defectcategory: a defect or misbehaviourcategory: a defect or misbehaviour