diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-12-03 17:24:16 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-12-03 17:24:16 +0000 |
commit | 7f3b396bf01ae727af21c432a52afb8e8ff5781b (patch) | |
tree | 8b12a96cca9b24a3d486b1a2e2bed6f3d1f3f2e9 /ssl/d1_both.c | |
parent | c07d7b3a386974c338492659291008bed07948e6 (diff) |
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 8dd8ea33ca79..d453c07c8e69 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -1490,9 +1490,12 @@ int dtls1_shutdown(SSL *s) { int ret; #ifndef OPENSSL_NO_SCTP - if (BIO_dgram_is_sctp(SSL_get_wbio(s)) && + BIO *wbio; + + wbio = SSL_get_wbio(s); + if (wbio != NULL && BIO_dgram_is_sctp(wbio) && !(s->shutdown & SSL_SENT_SHUTDOWN)) { - ret = BIO_dgram_sctp_wait_for_dry(SSL_get_wbio(s)); + ret = BIO_dgram_sctp_wait_for_dry(wbio); if (ret < 0) return -1; |