]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: server: fix cosmetic of error message on sni parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 May 2021 09:01:22 +0000 (11:01 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 7 Jun 2021 14:58:16 +0000 (16:58 +0200)
Fix memprintf used in server_parse_sni_expr. Error messages should not
be ending with a newline as it will be inserted in the parent function
on the ha_alert invocation.

src/server.c

index be4e6e156a27d134f959d02474a661fef218495d..6553c96c54deaabca125c23d15c1645705ff3528 100644 (file)
@@ -1851,7 +1851,7 @@ static int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char *
        if (!(expr->fetch->val & SMP_VAL_BE_SRV_CON)) {
                memprintf(err, "error detected while parsing sni expression : "
                          " fetch method '%s' extracts information from '%s', "
-                         "none of which is available here.\n",
+                         "none of which is available here.",
                          newsrv->sni_expr, sample_src_names(expr->fetch->use));
                return ERR_ALERT | ERR_FATAL;
        }