]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixed rlm_rest 2102/head
authorHerwin Weststrate <herwin@quarantainenet.nl>
Wed, 25 Oct 2017 06:21:07 +0000 (08:21 +0200)
committerHerwin Weststrate <herwin@quarantainenet.nl>
Wed, 25 Oct 2017 06:22:15 +0000 (08:22 +0200)
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

index 3dfbc5a45cc0c1b9ad993ca3dfe657f71628fe50..e4d3748f8c67356f6e8ef244bd9bd33c29d2661a 100644 (file)
@@ -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;
 
        /*