commit 3d27fce2c766e798028bec72032c92ba70165728
parent c6b93aaa8519556e7220da2ad275572c9a1b3e10
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Thu, 9 Jul 2020 09:30:38 +0200
fix variable type conflics and error handling
tls_read() and read(2) return ssize_t
By using size_t an error condition check
by -1 is not possible.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tlsrp.c b/tlsrp.c
@@ -124,7 +124,7 @@ serve(int serverfd, int clientfd, struct tls *clientconn)
char *cliptr = NULL, *serptr = NULL;
- size_t clicount = 0, sercount = 0;
+ ssize_t clicount = 0, sercount = 0;
ssize_t written = 0;
while (poll(pfd, 2, TIMEOUT) != 0) {