From: Dr. Stephen Henson Date: Thu, 1 Oct 2009 00:03:59 +0000 (+0000) Subject: PR: 2054 X-Git-Tag: OpenSSL_0_9_8m-beta1~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d402f6b66ff9ca0d78095a343ca07f220f533b22;p=oweals%2Fopenssl.git PR: 2054 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BIO_ctrl error handling --- diff --git a/ssl/d1_both.c b/ssl/d1_both.c index c2834e79f8..de96622f86 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -279,7 +279,7 @@ int dtls1_do_write(SSL *s, int type) * retransmit */ if ( BIO_ctrl(SSL_get_wbio(s), - BIO_CTRL_DGRAM_MTU_EXCEEDED, 0, NULL)) + BIO_CTRL_DGRAM_MTU_EXCEEDED, 0, NULL) > 0 ) s->d1->mtu = BIO_ctrl(SSL_get_wbio(s), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL); else