]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Acct-Session-Time is uint32, not date data type.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 20 Aug 2019 17:06:27 +0000 (13:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Aug 2019 17:41:47 +0000 (13:41 -0400)
src/modules/rlm_radutmp/rlm_radutmp.c

index 943b500ae1e97dda1d5f5ad6a5ae1d7f9c10e8a8..bfeff4c1c77b43c06ccf5da15106437f2afaa50c 100644 (file)
@@ -231,7 +231,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_accounting(void *instance, UNUSED void *
                int check2 = 0;
 
                if ((vp = fr_pair_find_by_da(request->packet->vps, attr_acct_session_time, TAG_ANY))
-                    == NULL || vp->vp_date == 0)
+                    == NULL || vp->vp_uint32 == 0)
                        check1 = 1;
                if ((vp = fr_pair_find_by_da(request->packet->vps, attr_acct_session_id, TAG_ANY))
                     != NULL && vp->vp_length == 8 &&