Add cast to uint64_t to prevent integer overflow
authorHenning Rogge <hrogge@gmail.com>
Sat, 9 Jan 2016 09:35:54 +0000 (10:35 +0100)
committerHenning Rogge <hrogge@gmail.com>
Sat, 9 Jan 2016 09:35:54 +0000 (10:35 +0100)
(see Coverity CID 84333)

src-plugins/subsystems/oonf_telnet.c

index 343d952..464faa5 100644 (file)
@@ -733,7 +733,7 @@ _cb_telnet_repeat(struct oonf_telnet_data *data) {
 
   timer->cb_context = data;
   timer->class = &_telnet_repeat_timerinfo;
-  oonf_timer_start(timer, MSEC_PER_SEC * interval);
+  oonf_timer_start(timer, (uint64_t)MSEC_PER_SEC * interval);
 
   data->stop_handler = _cb_telnet_repeat_stophandler;
   data->stop_data[0] = timer;