summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-18 17:37:19 -0500
committerJune McEnroe <june@causal.agency>2020-02-18 17:37:19 -0500
commitb8786e458787967e3b91afe0d0054c6858fc1f57 (patch)
tree831350d18bf8c5df45dd7119cb561fe865904d7a /client.c
parentImplement source address selection (diff)
downloadpounce-b8786e458787967e3b91afe0d0054c6858fc1f57.tar.gz
pounce-b8786e458787967e3b91afe0d0054c6858fc1f57.zip
Remove bad assert
If there's no room left in the buffer, tls_read will return 0 (since we
gave it zero length to read into) and cause client->error to be set.
Diffstat (limited to 'client.c')
-rw-r--r--client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/client.c b/client.c
index fe5eceb..b3fc32e 100644
--- a/client.c
+++ b/client.c
@@ -277,7 +277,6 @@ static bool intercept(const char *line, size_t len) {
 }
 
 void clientRecv(struct Client *client) {
-	assert(client->len < sizeof(client->buf));
 	ssize_t read = tls_read(
 		client->tls,
 		&client->buf[client->len], sizeof(client->buf) - client->len
0bda982a9cedfcdfeb677a436ec8a730364650&follow=1'>Call clientConsume before clientRecvJune McEnroe 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe