Module: kamailio
Branch: 5.6
Commit: 92e0dc0c3a8fe17d18fad944bfeb3d9102c2ca6c
URL:
https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-02T13:49:05+02:00
ctl: skip checking end tag for BINRPC_T_DOUBLE values
- related to GH #3123
(cherry picked from commit 72901b7822c5684f8a10faa91118f3fd6de6c01a)
---
Modified: src/modules/ctl/binrpc.h
---
Diff:
https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
Patch:
https://github.com/kamailio/kamailio/commit/92e0dc0c3a8fe17d18fad944bfeb3d9…
---
diff --git a/src/modules/ctl/binrpc.h b/src/modules/ctl/binrpc.h
index da4524878c..94ced22ea2 100644
--- a/src/modules/ctl/binrpc.h
+++ b/src/modules/ctl/binrpc.h
@@ -730,7 +730,7 @@ inline static unsigned char* binrpc_read_record(struct
binrpc_parse_ctx* ctx,
type=*p & 0xf;
len=*p>>4;
p++;
- if (len & 8){
+ if ((type!=BINRPC_T_DOUBLE) && (len & 8)){
end_tag=1; /* possible end mark for array or structs */
/* we have to read len bytes and use them as the new len */
p=binrpc_read_int(&len, len&7, p, end, err);