Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/wpa/dist/src/radius Timestamps can be quite lar...



details:   https://anonhg.NetBSD.org/src/rev/5fb4aca06b3b
branches:  trunk
changeset: 327110:5fb4aca06b3b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 17:42:23 2014 +0000

description:
Timestamps can be quite large, so use llabs.

diffstat:

 external/bsd/wpa/dist/src/radius/radius_das.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9dc9fdec17d2 -r 5fb4aca06b3b external/bsd/wpa/dist/src/radius/radius_das.c
--- a/external/bsd/wpa/dist/src/radius/radius_das.c     Thu Feb 27 17:26:02 2014 +0000
+++ b/external/bsd/wpa/dist/src/radius/radius_das.c     Thu Feb 27 17:42:23 2014 +0000
@@ -200,7 +200,7 @@
                                  (u8 *) &val, 4);
        if (res == 4) {
                u32 timestamp = ntohl(val);
-               if (abs(now.sec - timestamp) > das->time_window) {
+               if (llabs(now.sec - timestamp) > das->time_window) {
                        wpa_printf(MSG_DEBUG, "DAS: Unacceptable "
                                   "Event-Timestamp (%u; local time %u) in "
                                   "packet from %s:%d - drop",



Home | Main Index | Thread Index | Old Index