/*
* This module handles HTTP transactions.
*
- * Copyright (c) 1996-2016 by the citadel.org team
+ * Copyright (c) 1996-2018 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
int len = 0;
int c = 0;
- if (buf == NULL) return;
+ if (buf == NULL) return(-1);
while (len < maxbytes) {
c = client_read(ch, &buf[len], 1);