projects
/
oweals
/
openwrt-ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334dce0
)
mbedtls: fix handling SSL close notification
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2016 18:37:13 +0000
(19:37 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2016 18:37:13 +0000
(19:37 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-mbedtls.c
patch
|
blob
|
history
diff --git
a/ustream-mbedtls.c
b/ustream-mbedtls.c
index 7fbfba5dbd1b1bf28297e1369ed869bd9601d2dc..e176afe71f02399717a3e219bbb8e28053f7a784 100644
(file)
--- a/
ustream-mbedtls.c
+++ b/
ustream-mbedtls.c
@@
-316,6
+316,9
@@
__hidden int __ustream_ssl_read(struct ustream_ssl *us, char *buf, int len)
if (ssl_do_wait(ret))
return U_SSL_PENDING;
+ if (ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY)
+ return 0;
+
ustream_ssl_error(us, ret);
return U_SSL_ERROR;
}