Automatic search and replace for pairfind.
[freeradius.git] / src / modules / rlm_acctlog / rlm_acctlog.c
index 2a840e7..a23d0c2 100644 (file)
@@ -85,7 +85,7 @@ static int do_acctlog_acct(void *instance, REQUEST *request)
 
        inst = (rlm_acctlog_t*) instance;
 
-    if ((pair = pairfind(request->packet->vps, PW_ACCT_STATUS_TYPE)) != NULL) {
+    if ((pair = pairfind(request->packet->vps, PW_ACCT_STATUS_TYPE, 0)) != NULL) {
         acctstatustype = pair->vp_integer;
     } else {
         radius_xlat(logstr, sizeof(logstr), "packet has no accounting status type. [user '%{User-Name}', nas '%{NAS-IP-Address}']", request, NULL);