fix bug in reading socket
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 29 Aug 2016 14:19:53 +0000 (16:19 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 29 Aug 2016 14:19:53 +0000 (16:19 +0200)
Change-Id: I2f7daf847f59a450fafa5d7edf5f5984fdc15481
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/websock.c

index 1b886c1..e899ee5 100644 (file)
@@ -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;
 }