summaryrefslogtreecommitdiff
path: root/src/alarm.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 17:16:04 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 17:16:04 +0000
commitddd1fd266a0732661fdfd6792dd4bbe70271b0f8 (patch)
tree4e1551ee1aba9f4d6585be455a02458f3781f990 /src/alarm.c
parenta3f3fce1466938522e3ab8a722486ccf20333aa5 (diff)
downloadconntrack-tools-ddd1fd266a0732661fdfd6792dd4bbe70271b0f8.tar.gz
conntrack-tools-ddd1fd266a0732661fdfd6792dd4bbe70271b0f8.zip
fix overflow in usecs in mod_alarm()
Diffstat (limited to 'src/alarm.c')
-rw-r--r--src/alarm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alarm.c b/src/alarm.c
index 6aac4a3..a64c37a 100644
--- a/src/alarm.c
+++ b/src/alarm.c
@@ -83,7 +83,7 @@ void mod_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc)
list_del(&alarm->head);
gettimeofday(&tv, NULL);
alarm->tv.tv_sec = tv.tv_sec + sc;
- alarm->tv.tv_usec = tv.tv_usec + usc;
+ alarm->tv.tv_usec = usc;
__add_alarm(alarm);
}