Module: kamailio
Branch: master
Commit: 41cd4fe940e2867a348d45840363dfef2b9e05dc
URL:
https://github.com/kamailio/kamailio/commit/41cd4fe940e2867a348d45840363dfe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-14T13:48:59+01:00
acc_radius: cast to uint64_t when using time_t value
---
Modified: src/modules/acc_radius/acc_radius_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/41cd4fe940e2867a348d45840363dfe…
Patch:
https://github.com/kamailio/kamailio/commit/41cd4fe940e2867a348d45840363dfe…
---
diff --git a/src/modules/acc_radius/acc_radius_mod.c
b/src/modules/acc_radius/acc_radius_mod.c
index 41e70c73fb..59c977a9e4 100644
--- a/src/modules/acc_radius/acc_radius_mod.c
+++ b/src/modules/acc_radius/acc_radius_mod.c
@@ -364,7 +364,7 @@ int acc_radius_send_request(struct sip_msg *req, acc_info_t *inf)
snprintf(smicrosec, 18, "%17.6f", tsecmicro);
ADD_RAD_AVPAIR(RA_TIME_STAMP, &smicrosec, -1);
} else {
- av_type = (uint32_t)inf->env->ts;
+ av_type = (uint32_t)(uint64_t)inf->env->ts;
ADD_RAD_AVPAIR(RA_TIME_STAMP, &av_type, -1);
}