Module: kamailio
Branch: master
Commit: 90356a685e8861d89057e8cbbe977599ab4a70b1
URL:
https://github.com/kamailio/kamailio/commit/90356a685e8861d89057e8cbbe97759…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-08-24T13:31:46+02:00
auth_ephemeral: additional cast to avoid storage size warning
---
Modified: src/modules/auth_ephemeral/authorize.c
---
Diff:
https://github.com/kamailio/kamailio/commit/90356a685e8861d89057e8cbbe97759…
Patch:
https://github.com/kamailio/kamailio/commit/90356a685e8861d89057e8cbbe97759…
---
diff --git a/src/modules/auth_ephemeral/authorize.c
b/src/modules/auth_ephemeral/authorize.c
index 638d97aa835..92633d0983f 100644
--- a/src/modules/auth_ephemeral/authorize.c
+++ b/src/modules/auth_ephemeral/authorize.c
@@ -156,7 +156,7 @@ static inline int do_auth(struct sip_msg *_m, struct hdr_field *_h,
str *_realm,
int autheph_verify_timestamp(str *_username)
{
- int pos = 0, cur_time = (int)time(NULL);
+ int pos = 0, cur_time = (int)(unsigned long long)time(NULL);
unsigned int expires;
str time_str = {0, 0};