]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: fix typo in processing of http-send-name-header
authorStathis Voukelatos <Stathis.Voukelatos@linn.co.uk>
Mon, 9 Jan 2012 13:27:13 +0000 (14:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Jan 2012 13:27:13 +0000 (14:27 +0100)
I downloaded version 1.4.19 this morning. While merging the code changes
to a custom build that we have here for our project I noticed a typo in
'session.c', in the new code for inserting the server name in the HTTP
header. The fix that I did is shown in the patch below.

[WT: the bug is harmless, it is only suboptimal]

src/session.c

index d87813e3710a78dacbcf6076796196e88b82b23d..e5b76eb3a222441b9c59419cdd7b4836f4d7e869 100644 (file)
@@ -1888,7 +1888,7 @@ struct task *process_session(struct task *t)
 
                /* Now we can add the server name to a header (if requested) */
                /* check for HTTP mode and proxy server_name_hdr_name != NULL */
-               if ((s->flags && SN_BE_ASSIGNED) &&
+               if ((s->flags & SN_BE_ASSIGNED) &&
                        (s->be->mode == PR_MODE_HTTP) &&
                        (s->be->server_id_hdr_name != NULL)) {