Module Name: src
Committed By: joerg
Date: Thu Feb 27 17:42:23 UTC 2014
Modified Files:
src/external/bsd/wpa/dist/src/radius: radius_das.c
Log Message:
Timestamps can be quite large, so use llabs.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/bsd/wpa/dist/src/radius/radius_das.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/wpa/dist/src/radius/radius_das.c
diff -u src/external/bsd/wpa/dist/src/radius/radius_das.c:1.1.1.1 src/external/bsd/wpa/dist/src/radius/radius_das.c:1.2
--- src/external/bsd/wpa/dist/src/radius/radius_das.c:1.1.1.1 Fri Jan 3 02:04:58 2014
+++ src/external/bsd/wpa/dist/src/radius/radius_das.c Thu Feb 27 17:42:23 2014
@@ -200,7 +200,7 @@ static void radius_das_receive(int sock,
(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",