mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
CLEANUP: server: fix cosmetic of error message on sni parsing
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.
This commit is contained in:
parent
ce986e1ce8
commit
c008a63582
@ -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)) {
|
if (!(expr->fetch->val & SMP_VAL_BE_SRV_CON)) {
|
||||||
memprintf(err, "error detected while parsing sni expression : "
|
memprintf(err, "error detected while parsing sni expression : "
|
||||||
" fetch method '%s' extracts information from '%s', "
|
" 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));
|
newsrv->sni_expr, sample_src_names(expr->fetch->use));
|
||||||
return ERR_ALERT | ERR_FATAL;
|
return ERR_ALERT | ERR_FATAL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user