Module: kamailio Branch: master Commit: 2827411b7f5d2f421cf0968b3689a288f5b70c39 URL: https://github.com/kamailio/kamailio/commit/2827411b7f5d2f421cf0968b3689a288f5b70c39
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-06-13T21:28:03+02:00 ctl: updated check for printing rpc fault --- Modified: src/modules/ctl/binrpc_run.c --- Diff: https://github.com/kamailio/kamailio/commit/2827411b7f5d2f421cf0968b3689a288f5b70c39.diff Patch: https://github.com/kamailio/kamailio/commit/2827411b7f5d2f421cf0968b3689a288f5b70c39.patch --- diff --git a/src/modules/ctl/binrpc_run.c b/src/modules/ctl/binrpc_run.c index cb1220b5c87..88f991a0067 100644 --- a/src/modules/ctl/binrpc_run.c +++ b/src/modules/ctl/binrpc_run.c @@ -493,7 +493,7 @@ static void rpc_fault(struct binrpc_ctx *ctx, int code, char *fmt, ...) } va_start(ap, fmt); len = vsnprintf(buf, MAX_FAULT_LEN, fmt, ap); /* ignore trunc. errors */ - if((len < 0) || (len > MAX_FAULT_LEN)) + if((len < 0) || (len >= MAX_FAULT_LEN)) len = MAX_FAULT_LEN - 1; va_end(ap); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
