Module: kamailio
Branch: master
Commit: 440a9955b4ce21b8c3dae9d6159d24a92ec28e7c
URL:
https://github.com/kamailio/kamailio/commit/440a9955b4ce21b8c3dae9d6159d24a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-27T09:24:33+01:00
ss7ops: adapt if expression for uint
- equal 0 or less than 1 is same in this case
---
Modified: src/modules/ss7ops/ss7ops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/440a9955b4ce21b8c3dae9d6159d24a…
Patch:
https://github.com/kamailio/kamailio/commit/440a9955b4ce21b8c3dae9d6159d24a…
---
diff --git a/src/modules/ss7ops/ss7ops_mod.c b/src/modules/ss7ops/ss7ops_mod.c
index b0f84694658..8772ff56b6b 100644
--- a/src/modules/ss7ops/ss7ops_mod.c
+++ b/src/modules/ss7ops/ss7ops_mod.c
@@ -221,9 +221,7 @@ static const uint8_t *extract_from_m2pa(const uint8_t *data, size_t
*len)
}
data += 8;
data_len -= 8;
- if(data_len == 0)
- return NULL;
- else if(data_len < 1) {
+ if(data_len < 1) {
LM_ERR("M2PA no space for prio %u\n", data_len);
return NULL;
}