diff options
author | Andy Polyakov <appro@openssl.org> | 2016-04-06 12:47:35 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-04-07 21:18:00 +0200 |
commit | 463a7b8cb0a449512448155a477f1460d8c951d9 (patch) | |
tree | 89baa5628a0eeee759ecad222b8bc0213275772e /ssl | |
parent | c32cbe97873bf919dc4d1bc332e4758ee6caea78 (diff) |
Clean-up *_DEBUG options.
Since NDEBUG is defined unconditionally on command line for release
builds, we can omit *_DEBUG options in favour of effective "all-on"
in debug builds exercised though CI.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 5a6e6a7060..e7f90ec7f0 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -142,9 +142,7 @@ * OTHERWISE. */ -#ifdef REF_DEBUG -# include <assert.h> -#endif +#include <assert.h> #include <stdio.h> #include "ssl_locl.h" #include <openssl/objects.h> @@ -3318,13 +3316,7 @@ void ssl_free_wbio_buffer(SSL *s) if (s->bbio == s->wbio) { /* remove buffering */ s->wbio = BIO_pop(s->wbio); -#ifdef REF_DEBUG - /* - * not the usual REF_DEBUG, but this avoids - * adding one more preprocessor symbol - */ assert(s->wbio != NULL); -#endif } BIO_free(s->bbio); s->bbio = NULL; |