projects
/
fwknop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
644b9e9
)
bug fix to exclude SPA packets with timestamps in the future that are too great ...
author
Michael Rash
<mbr@cipherdyne.org>
Wed, 23 Nov 2011 03:56:36 +0000 (22:56 -0500)
committer
Michael Rash
<mbr@cipherdyne.org>
Wed, 23 Nov 2011 03:56:36 +0000 (22:56 -0500)
server/incoming_spa.c
patch
|
blob
|
history
diff --git
a/server/incoming_spa.c
b/server/incoming_spa.c
index
7914d92
..
2c50294
100644
(file)
--- a/
server/incoming_spa.c
+++ b/
server/incoming_spa.c
@@
-379,11
+379,11
@@
incoming_spa(fko_srv_options_t *opts)
{
time(&now_ts);
- ts_diff = now_ts - spadat.timestamp;
+ ts_diff = abs(now_ts - spadat.timestamp);
if(ts_diff > atoi(opts->config[CONF_MAX_SPA_PACKET_AGE]))
{
- log_msg(LOG_WARNING, "SPA data is too old (%i seconds).",
+ log_msg(LOG_WARNING, "SPA data time difference is too great (%i seconds).",
ts_diff);
res = SPA_MSG_TOO_OLD;
goto clean_and_bail;