]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
it helps to check the correct return code
authorAlan T. DeKok <aland@freeradius.org>
Sun, 27 Aug 2023 13:32:44 +0000 (09:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 27 Aug 2023 13:32:44 +0000 (09:32 -0400)
src/modules/rlm_sql/rlm_sql.c

index 0b1f2a7246d63ca054506a10534b68f0c15086b9..8dfd75f194ee957b1156c74862ede86040a0e897 100644 (file)
@@ -889,7 +889,7 @@ static bool paircmp(request_t *request, fr_pair_list_t *check_list)
                /*
                 *      This attribute doesn't match.  Maybe there's another one which does match?
                 */
-               if (fr_value_box_cmp_op(check->op, &vp->data, &check->data) != 0) goto next_vp;
+               if (fr_value_box_cmp_op(check->op, &vp->data, &check->data) != 1) goto next_vp;
        }
 
        /*