From 8ce8269d770ad0cb6af0cb2c4a95cac5b9e48145 Mon Sep 17 00:00:00 2001 From: Robert Anderson <randerson@lbsd.net> Date: Mon, 19 Jul 2010 06:38:21 +0000 Subject: [PATCH] Fixed check for use packet timestamp --- smradiusd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smradiusd b/smradiusd index 6e9e4c7a..d80a0d3c 100755 --- a/smradiusd +++ b/smradiusd @@ -510,7 +510,7 @@ sub process_request { # Private data # Where we going to get the timestamp to use from?, from the packet, if its there, or from ourselves - if (defined($pkt->rawattr('Event-Timestamp') && $self->{'smradius'}->{'use_packet_timestamp'})) { + if (defined($pkt->rawattr('Event-Timestamp')) && $self->{'smradius'}->{'use_packet_timestamp'}) { $user->{'_Internal'}->{'Timestamp-Unix'} = $pkt->rawattr('Event-Timestamp'); } else { $user->{'_Internal'}->{'Timestamp-Unix'} = time(); -- GitLab