From: Alan T. DeKok Date: Tue, 20 Aug 2019 17:06:27 +0000 (-0400) Subject: Acct-Session-Time is uint32, not date data type. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=667695b2659421d2c027a04b27a2ffacaf828c19;p=thirdparty%2Ffreeradius-server.git Acct-Session-Time is uint32, not date data type. --- diff --git a/src/modules/rlm_radutmp/rlm_radutmp.c b/src/modules/rlm_radutmp/rlm_radutmp.c index 943b500ae1e..bfeff4c1c77 100644 --- a/src/modules/rlm_radutmp/rlm_radutmp.c +++ b/src/modules/rlm_radutmp/rlm_radutmp.c @@ -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 &&