From feca4978ba541f484c52824578dfcfca3e83138a Mon Sep 17 00:00:00 2001 From: Stephen Jazdzewski Date: Mon, 21 Dec 2015 19:00:09 -0800 Subject: [PATCH] Stray line feed in fqdname causes --add-header and --add-header-file header records to be ignored by server. --- src/conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conn.c b/src/conn.c index 13e39f2..861b989 100755 --- a/src/conn.c +++ b/src/conn.c @@ -112,6 +112,7 @@ conn_init(Conn *conn) conn->sd = -1; conn->myport = -1; 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 if (param.use_ssl) {