提交 7c75f462 编写于 作者: D Dr. Stephen Henson

PR: 2050

Submitted by: Michael Tuexen <tuexen@fh-muenster.de>
Approved by: steve@openssl.org

Fix handling of ENOTCONN and EMSGSIZE for dgram BIOs.
上级 d636aa71
...@@ -324,7 +324,7 @@ static int dgram_write(BIO *b, const char *in, int inl) ...@@ -324,7 +324,7 @@ static int dgram_write(BIO *b, const char *in, int inl)
BIO_clear_retry_flags(b); BIO_clear_retry_flags(b);
if (ret <= 0) if (ret <= 0)
{ {
if (BIO_sock_should_retry(ret)) if (BIO_dgram_should_retry(ret))
{ {
BIO_set_retry_write(b); BIO_set_retry_write(b);
data->_errno = get_last_socket_error(); data->_errno = get_last_socket_error();
...@@ -694,10 +694,6 @@ int BIO_dgram_non_fatal_error(int err) ...@@ -694,10 +694,6 @@ int BIO_dgram_non_fatal_error(int err)
# endif # endif
#endif #endif
#if defined(ENOTCONN)
case ENOTCONN:
#endif
#ifdef EINTR #ifdef EINTR
case EINTR: case EINTR:
#endif #endif
...@@ -720,11 +716,6 @@ int BIO_dgram_non_fatal_error(int err) ...@@ -720,11 +716,6 @@ int BIO_dgram_non_fatal_error(int err)
case EALREADY: case EALREADY:
#endif #endif
/* DF bit set, and packet larger than MTU */
#ifdef EMSGSIZE
case EMSGSIZE:
#endif
return(1); return(1);
/* break; */ /* break; */
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册