summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-09-22 11:34:25 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-09-22 11:34:25 +0000
commit0cc0db32e31934a86ded458660a65b076f882ea8 (patch)
tree1c231cc26da83e9eaf7c8a4b0b1b75d330f23cef /crypto/bio
parentd68f7641a3a636a8e4bb4354dbecd9e131416679 (diff)
PR: 2050
Submitted by: Michael Tuexen <tuexen@fh-muenster.de> Approved by: steve@openssl.org Fix handling of ENOTCONN and EMSGSIZE for dgram BIOs.
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bss_dgram.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c
index 89b9986a4b..5cd6342598 100644
--- a/crypto/bio/bss_dgram.c
+++ b/crypto/bio/bss_dgram.c
@@ -324,7 +324,7 @@ static int dgram_write(BIO *b, const char *in, int inl)
BIO_clear_retry_flags(b);
if (ret <= 0)
{
- if (BIO_sock_should_retry(ret))
+ if (BIO_dgram_should_retry(ret))
{
BIO_set_retry_write(b);
data->_errno = get_last_socket_error();
@@ -694,10 +694,6 @@ int BIO_dgram_non_fatal_error(int err)
# endif
#endif
-#if defined(ENOTCONN)
- case ENOTCONN:
-#endif
-
#ifdef EINTR
case EINTR:
#endif
@@ -720,11 +716,6 @@ int BIO_dgram_non_fatal_error(int err)
case EALREADY:
#endif
-/* DF bit set, and packet larger than MTU */
-#ifdef EMSGSIZE
- case EMSGSIZE:
-#endif
-
return(1);
/* break; */
default: