Commit 723f616d authored by Jon Spillett's avatar Jon Spillett Committed by Rich Salz
Browse files

Exit the loop on failure



Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2805)
(cherry picked from commit f1254300)
parent b97324db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ static int asn1_bio_write(BIO *b, const char *in, int inl)
                wrmax = inl;
            ret = BIO_write(next, in, wrmax);
            if (ret <= 0)
                break;
                goto done;
            wrlen += ret;
            ctx->copylen -= ret;
            in += ret;