From cb3eafb4b1d95ef4dad25b14a1aa9ce0455177f8 Mon Sep 17 00:00:00 2001 From: Herwin Weststrate Date: Wed, 25 Oct 2017 08:21:07 +0200 Subject: [PATCH] Fixed rlm_rest Add an explicit type to the value assigned to REST-HTTP-Status-Code. Without this, the following error occurs: CONSISTENCY CHECK FAILED src/lib/util/pair_cursor.c[478]: VALUE_PAIR attribute 0xb6c639a8 "REST-HTTP-Status-Code" data type (int8) does not match da type (uint32) --- src/modules/rlm_rest/rlm_rest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/rlm_rest/rlm_rest.c b/src/modules/rlm_rest/rlm_rest.c index 3dfbc5a45cc..e4d3748f8c6 100644 --- a/src/modules/rlm_rest/rlm_rest.c +++ b/src/modules/rlm_rest/rlm_rest.c @@ -115,6 +115,7 @@ static int rlm_rest_status_update(REQUEST *request, void *handle) RDEBUG2("&REST-HTTP-Status-Code := %i", code); REXDENT(); + value.type = FR_TYPE_UINT32; value.vb_uint32 = code; /* -- 2.47.3