]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
"no " can now return mismatch instead of command error
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 19 Oct 2019 02:45:04 +0000 (22:45 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 19 Oct 2019 02:45:04 +0000 (22:45 -0400)
src/bin/unit_test_attribute.c

index 9cbba991bd9d0d64a7f35d0d966feac12dc6b63a..678a6f7abbfdddecdabdee82ce804b5ac8a54367 100644 (file)
@@ -1428,13 +1428,13 @@ static size_t command_no(command_result_t *result, command_ctx_t *cc,
         *      OK becomes a command error
         */
        case RESULT_OK:
-               RETURN_COMMAND_ERROR();
+               RETURN_MISMATCH(data_used);
 
        /*
         *      Mismatch becomes OK
         */
        case RESULT_MISMATCH:
-               RETURN_OK(0);
+               RETURN_OK(data_used);
 
        /*
         *      The rest are unchanged...