[sr-dev] git:master:72901b78: ctl: skip checking end tag for BINRPC_T_DOUBLE values
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 2 12:50:03 CEST 2022
Module: kamailio
Branch: master
Commit: 72901b7822c5684f8a10faa91118f3fd6de6c01a
URL: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3fd6de6c01a
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-06-02T12:48:38+02:00
ctl: skip checking end tag for BINRPC_T_DOUBLE values
- related to GH #3123
---
Modified: src/modules/ctl/binrpc.h
---
Diff: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3fd6de6c01a.diff
Patch: https://github.com/kamailio/kamailio/commit/72901b7822c5684f8a10faa91118f3fd6de6c01a.patch
---
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);
More information about the sr-dev
mailing list