Avoid abort() throughout the library, except when preprocessor

symbols for debugging are defined.
This commit is contained in:
Bodo Möller
2000-09-04 15:34:43 +00:00
parent 5e38616380
commit bbb8de0966
19 changed files with 196 additions and 75 deletions

View File

@@ -58,6 +58,8 @@
* [including the GNU Public Licence.]
*/
#include <assert.h>
#include <stdio.h>
#include <openssl/objects.h>
#include <openssl/lhash.h>
@@ -1851,12 +1853,11 @@ void ssl_free_wbio_buffer(SSL *s)
if (s->bbio == s->wbio)
{
/* remove buffering */
under=BIO_pop(s->wbio);
if (under != NULL)
s->wbio=under;
else
abort(); /* ok */
}
s->wbio=BIO_pop(s->wbio);
#ifdef REF_CHECK /* not the usual REF_CHECK, but this avoids adding one more preprocessor symbol */
assert(s->wbio != NULL);
#endif
}
BIO_free(s->bbio);
s->bbio=NULL;
}