Avoid abort() throughout the library, except when preprocessor
symbols for debugging are defined.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user