projects
/
oweals
/
ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fcd017
)
polarssl: fix handling SSL close notification
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2016 18:37:57 +0000
(19:37 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2016 18:37:57 +0000
(19:37 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-polarssl.c
patch
|
blob
|
history
diff --git
a/ustream-polarssl.c
b/ustream-polarssl.c
index 57b37142a739cf9ab4cd2a7d5884f1ce7dbd9e6c..39bde2111ce6227366107b9becae29aacfa3f0a7 100644
(file)
--- a/
ustream-polarssl.c
+++ b/
ustream-polarssl.c
@@
-242,6
+242,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 == POLARSSL_ERR_SSL_PEER_CLOSE_NOTIFY)
+ return 0;
+
ustream_ssl_error(us, ret);
return U_SSL_ERROR;
}