A variable declaration got dropped during a merge.
And if a compiler inlines strcmp() and you put a strcmp in an
assert message, the resultant stringification exceeds ANSI string
limits.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
STACK_OF(OCSP_CERTID) *ids = NULL;
STACK_OF(OPENSSL_STRING) *reqnames = NULL;
STACK_OF(X509) *sign_other = NULL, *verify_other = NULL, *rother = NULL;
+ STACK_OF(X509) *issuers = NULL;
X509 *issuer = NULL, *cert = NULL, *rca_cert = NULL;
X509 *signer = NULL, *rsigner = NULL;
X509_STORE *store = NULL;
for (; o->name; ++o) {
const OPTIONS *next;
#ifndef NDEBUG
- int i;
+ int duplicated, i;
#endif
if (o->name == OPT_HELP_STR || o->name == OPT_MORE_STR)
|| i == 'f' || i == 'F');
/* Make sure there are no duplicates. */
- for (next = o; (++next)->name;) {
+ for (next = o + 1; next->name; ++next) {
/*
- * do allow aliases: assert(o->retval != next->retval);
+ * Some compilers inline strcmp and the assert string is too long.
*/
- assert(strcmp(o->name, next->name) != 0);
+ duplicated = strcmp(o->name, next->name) == 0;
+ assert(!duplicated);
}
#endif
if (o->name[0] == '\0') {