Skip to content

Commit

Permalink
lib-http: test-http-client-errors - Skip VERSION line in DNS reply
Browse files Browse the repository at this point in the history
Otherwise we send extraneous results causing SIGPIPE crash.

Broken in ddb9ead
  • Loading branch information
cmouse committed Aug 28, 2018
1 parent 1d61578 commit fd0bb7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib-http/test-http-client-errors.c
Expand Up @@ -2484,6 +2484,8 @@ test_dns_lookup_ttl_input(struct server_connection *conn)
}

while ((line=i_stream_read_next_line(conn->conn.input)) != NULL) {
if (str_begins(line, "VERSION"))
continue;
if (debug)
i_debug("DNS REQUEST %u: %s", count, line);

Expand Down Expand Up @@ -2787,6 +2789,8 @@ test_dns_reconnect_failure_input(struct server_connection *conn)
}

while ((line=i_stream_read_next_line(conn->conn.input)) != NULL) {
if (str_begins(line, "VERSION"))
continue;
if (debug)
i_debug("DNS REQUEST %u: %s", count, line);

Expand Down

0 comments on commit fd0bb7b

Please sign in to comment.