X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fhttp.c;h=0749a21a1380f50b8fc0b5fc8e1e3159238567c0;hb=7f7214d4e20d34e813eef0794e55d1a1fe835f93;hp=eeb51cfd30bb310118f48452f22ea665bbc1c510;hpb=bd8aec5ecea29ad91c64b2ea12ed3b7b8c1a543d;p=citadel.git diff --git a/webcit-ng/http.c b/webcit-ng/http.c index eeb51cfd3..0749a21a1 100644 --- a/webcit-ng/http.c +++ b/webcit-ng/http.c @@ -62,7 +62,7 @@ int client_readline(struct client_handle *ch, char *buf, int maxbytes) 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);