[Issue 10481] cn=config leaks data in error path