summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-08-29 16:19:53 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-08-29 16:19:53 +0200
commitdd1e45095d0525384a3600b8a4532046d35befac (patch)
tree0853dcf5037df74b7a65266ac977fda887ef6741
parent9c4961a0e68458061171aef5f3b30a9b1fa8e333 (diff)
fix bug in reading socket
Change-Id: I2f7daf847f59a450fafa5d7edf5f5984fdc15481 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/websock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websock.c b/src/websock.c
index 1b886c1b..e899ee52 100644
--- a/src/websock.c
+++ b/src/websock.c
@@ -537,7 +537,7 @@ int websock_drop(struct websock *ws)
char buffer[8000];
while (ws->length)
- if (ws_read(ws, buffer, sizeof buffer) < 0)
+ if (websock_read(ws, buffer, sizeof buffer) < 0)
return -1;
return 0;
}