]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/http.c
The "c_smtpclient_use_starttls" configuration option has been replaced
[citadel.git] / webcit-ng / http.c
index eeb51cfd30bb310118f48452f22ea665bbc1c510..a7df9715638bfc81577016ae485a9233ccc45941 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -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);