webcit-ng openssl 1.1 compatibility
[citadel.git] / webcit-ng / http.c
index eeb51cfd30bb310118f48452f22ea665bbc1c510..0749a21a1380f50b8fc0b5fc8e1e3159238567c0 100644 (file)
@@ -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);