]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-base64 - Abort random lowlevel test case early when something failed already.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 16 Sep 2020 21:20:32 +0000 (23:20 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 14:08:11 +0000 (14:08 +0000)
src/lib/test-base64.c

index e745ba3c921cda85d127583baffce9900305bcf4..023a6d20ee4f7f99c0f123b492c3e229c27bc1c8 100644 (file)
@@ -1084,6 +1084,9 @@ test_base64_random_lowlevel_case(const struct base64_scheme *b64,
        buffer_t *buf1, *buf2;
        unsigned int i, j;
 
+       if (test_has_failed())
+               return;
+
        buf1 = t_buffer_create(MAX_BASE64_ENCODED_SIZE(sizeof(in_buf)));
        buf2 = t_buffer_create(MAX_BASE64_ENCODED_SIZE(sizeof(in_buf)));