Module: kamailio
Branch: master
Commit: 6ebe3b612d60e02854c7b88cd241615b50666b00
URL:
https://github.com/kamailio/kamailio/commit/6ebe3b612d60e02854c7b88cd241615…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-01-16T11:03:02+01:00
ss7ops: rename local variable that hides the function parameter
---
Modified: src/modules/ss7ops/isup_parsed.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6ebe3b612d60e02854c7b88cd241615…
Patch:
https://github.com/kamailio/kamailio/commit/6ebe3b612d60e02854c7b88cd241615…
---
diff --git a/src/modules/ss7ops/isup_parsed.c b/src/modules/ss7ops/isup_parsed.c
index 5ebc2d7f348..75a132435f8 100644
--- a/src/modules/ss7ops/isup_parsed.c
+++ b/src/modules/ss7ops/isup_parsed.c
@@ -1067,7 +1067,7 @@ static int do_parse(
while(opt_left > 0) {
uint8_t ie = opt_data[0];
- size_t len;
+ size_t len1;
opt_data += 1;
opt_left -= 1;
@@ -1078,20 +1078,20 @@ static int do_parse(
LM_ERR("ISUP no space for len %zu\n", opt_left);
return -1;
}
- len = opt_data[0];
+ len1 = opt_data[0];
opt_left -= 1;
opt_data += 1;
- if(opt_left < len) {
+ if(opt_left < len1) {
LM_ERR("ISUP no space optional data %zu vs. %zu\n", opt_left,
- len);
+ len1);
return -1;
}
- visitor(ie, opt_data, len, ptr);
+ visitor(ie, opt_data, len1, ptr);
- opt_data += len;
- opt_left -= len;
+ opt_data += len1;
+ opt_left -= len1;
}
}