diff options
Diffstat (limited to 'iri.c')
-rw-r--r-- | iri.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -364,12 +364,14 @@ parse_iri(char *iri, struct iri *ret, const char **err_ret) } int -trim_req_iri(char *iri) +trim_req_iri(char *iri, const char **err) { char *i; - if ((i = strstr(iri, "\r\n")) == NULL) + if ((i = strstr(iri, "\r\n")) == NULL) { + *err = "missing CRLF"; return 0; + } *i = '\0'; return 1; } |