projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gumstix] Fix ext4 build
[openwrt.git]
/
package
/
uhttpd
/
src
/
uhttpd-tls.c
diff --git
a/package/uhttpd/src/uhttpd-tls.c
b/package/uhttpd/src/uhttpd-tls.c
index
26143dd
..
008f8e0
100644
(file)
--- a/
package/uhttpd/src/uhttpd-tls.c
+++ b/
package/uhttpd/src/uhttpd-tls.c
@@
-70,12
+70,14
@@
void uh_tls_client_accept(struct client *c)
int uh_tls_client_recv(struct client *c, void *buf, int len)
{
int uh_tls_client_recv(struct client *c, void *buf, int len)
{
- return SSL_read(c->tls, buf, len);
+ int rv = SSL_read(c->tls, buf, len);
+ return (rv > 0) ? rv : -1;
}
int uh_tls_client_send(struct client *c, void *buf, int len)
{
}
int uh_tls_client_send(struct client *c, void *buf, int len)
{
- return SSL_write(c->tls, buf, len);
+ int rv = SSL_write(c->tls, buf, len);
+ return (rv > 0) ? rv : -1;
}
void uh_tls_client_close(struct client *c)
}
void uh_tls_client_close(struct client *c)
This page took
0.022178 seconds
and
4
git commands to generate.