diff --git a/src/radius/radius_das.c b/src/radius/radius_das.c index 8e5988dd3..418b1605c 100644 --- a/src/radius/radius_das.c +++ b/src/radius/radius_das.c @@ -200,7 +200,8 @@ static void radius_das_receive(int sock, void *eloop_ctx, void *sock_ctx) (u8 *) &val, 4); if (res == 4) { u32 timestamp = ntohl(val); - if (abs(now.sec - timestamp) > das->time_window) { + if ((unsigned int) abs(now.sec - timestamp) > + das->time_window) { wpa_printf(MSG_DEBUG, "DAS: Unacceptable " "Event-Timestamp (%u; local time %u) in " "packet from %s:%d - drop",