From: Alan T. DeKok Date: Sun, 27 Aug 2023 13:32:44 +0000 (-0400) Subject: it helps to check the correct return code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a5f1b416bdbd39ef8ea97a35d0a095c5c4a49f7;p=thirdparty%2Ffreeradius-server.git it helps to check the correct return code --- diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index 0b1f2a7246d..8dfd75f194e 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -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; } /*