summaryrefslogtreecommitdiffstats
path: root/crypto/conf/conf_api.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-09-04 15:34:43 +0000
committerBodo Möller <bodo@openssl.org>2000-09-04 15:34:43 +0000
commitbbb8de0966f0181498a0491f42d8b839778a93e7 (patch)
tree5a645a6357da154d8a320950a302cdf6f1d7e793 /crypto/conf/conf_api.c
parent5e386163801a248063afbc9e346ab1b098356729 (diff)
Avoid abort() throughout the library, except when preprocessor
symbols for debugging are defined.
Diffstat (limited to 'crypto/conf/conf_api.c')
-rw-r--r--crypto/conf/conf_api.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c
index 8b6bc9accb..919aebe313 100644
--- a/crypto/conf/conf_api.c
+++ b/crypto/conf/conf_api.c
@@ -58,6 +58,12 @@
/* Part of the code in here was originally in conf.c, which is now removed */
+#ifndef CONF_DEBUG
+# undef NDEBUG /* avoid conflicting definitions */
+# define NDEBUG
+#endif
+
+#include <assert.h>
#include <openssl/conf.h>
#include <openssl/conf_api.h>
@@ -267,13 +273,7 @@ CONF_VALUE *_CONF_new_section(CONF *conf, char *section)
v->value=(char *)sk;
vv=(CONF_VALUE *)lh_insert(conf->data,v);
- if (vv != NULL)
- {
-#if !defined(NO_STDIO) && !defined(WIN16)
- fprintf(stderr,"internal fault\n");
-#endif
- abort();
- }
+ assert(vv == NULL);
ok=1;
err:
if (!ok)