summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:03:59 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:03:59 +0000
commitd402f6b66ff9ca0d78095a343ca07f220f533b22 (patch)
tree39ed7ddccdd7734ade0efd6d449506adbdbeda10 /ssl/d1_both.c
parent36a38a7a276f6edbe5df73a8630fad1bf7fa1b6c (diff)
PR: 2054
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct BIO_ctrl error handling
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r--ssl/d1_both.c2
1 files changed, 1 insertions, 1 deletions
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