how application software uses the API function BIO_indent(3):
If the caller asks for some output, but not more than some negative
number of bytes, give them zero bytes of output rather than drowning
them in nearly INT_MAX bytes.
OK tb@
-/* $OpenBSD: bio_lib.c,v 1.30 2021/10/24 13:46:56 tb Exp $ */
+/* $OpenBSD: bio_lib.c,v 1.31 2021/12/09 15:28:58 schwarze Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
int
BIO_indent(BIO *b, int indent, int max)
{
- if (indent < 0)
- indent = 0;
if (indent > max)
indent = max;
+ if (indent < 0)
+ indent = 0;
while (indent--)
if (BIO_puts(b, " ") != 1)
return 0;