summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}