Stray line feed in fqdname causes --add-header and --add-header-file header records to be ignored by server.

This commit is contained in:
Stephen Jazdzewski 2015-12-21 19:00:09 -08:00 committed by Stephen Jazdzewski
parent 0c7d127883
commit feca4978ba

View File

@ -112,6 +112,7 @@ conn_init(Conn *conn)
conn->sd = -1; conn->sd = -1;
conn->myport = -1; conn->myport = -1;
conn->line.iov_base = conn->line_buf; conn->line.iov_base = conn->line_buf;
conn->fqdname_len = strcspn(conn->fqdname,"\r\n"); // Chomp since used in Host header record
#ifdef HAVE_SSL #ifdef HAVE_SSL
if (param.use_ssl) { if (param.use_ssl) {