Fix missing return in asn1_compare_bytes()
authorjsing <jsing@openbsd.org>
Thu, 9 Dec 2021 16:31:33 +0000 (16:31 +0000)
committerjsing <jsing@openbsd.org>
Thu, 9 Dec 2021 16:31:33 +0000 (16:31 +0000)
regress/lib/libcrypto/asn1/asn1time.c

index 6a3921b..6bbbf39 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1time.c,v 1.8 2015/12/28 14:18:38 bcook Exp $ */
+/* $OpenBSD: asn1time.c,v 1.9 2021/12/09 16:31:33 jsing Exp $ */
 /*
  * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
  *
@@ -163,6 +163,7 @@ asn1_compare_bytes(int test_no, const unsigned char *d1,
                hexdump(d1, len1);
                fprintf(stderr, "Want:\n");
                hexdump(d2, len2);
+               return (1);
        }
        return (0);
 }