Module: kamailio
Branch: master
Commit: 0259eaedd507c314161c59b72eaa4564effac555
URL:
https://github.com/kamailio/kamailio/commit/0259eaedd507c314161c59b72eaa456…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-13T09:51:51+01:00
xmlrpc: cast to uint64_t when using time_t value
---
Modified: src/modules/xmlrpc/xmlrpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0259eaedd507c314161c59b72eaa456…
Patch:
https://github.com/kamailio/kamailio/commit/0259eaedd507c314161c59b72eaa456…
---
diff --git a/src/modules/xmlrpc/xmlrpc.c b/src/modules/xmlrpc/xmlrpc.c
index 7cfb856774..bddf864206 100644
--- a/src/modules/xmlrpc/xmlrpc.c
+++ b/src/modules/xmlrpc/xmlrpc.c
@@ -43,6 +43,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
+#include <stdint.h>
#include <stdarg.h>
#include <sys/types.h>
#include <signal.h>
@@ -1335,7 +1336,7 @@ static int get_int(int* val, struct xmlrpc_reply* reply,
ret=-1;
break;
case XML_T_DATE:
- *val = xmlrpc2time(val_str);
+ *val = (int)(uint64_t)xmlrpc2time(val_str);
break;
case XML_T_DOUBLE:
*val = (int)strtod(val_str, &end_ptr);