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/ef22713ff9a3
branches:  trunk
changeset: 793850:ef22713ff9a3
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 40e53dc6ea4d -r ef22713ff9a3 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