From a5853d7c97b23bf0e4c4438a3ac3f67f28292d6c Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 21 Aug 2017 20:46:52 +0100 Subject: [PATCH] Fix address ignore-errors flag bit initialisation and propagation Broken-by: 7eb0e5d2b8 --- src/src/globals.c | 1 + src/src/routers/queryprogram.c | 2 +- src/src/routers/redirect.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/src/globals.c b/src/src/globals.c index 7f6ce6d40..f3fdb5975 100644 --- a/src/src/globals.c +++ b/src/src/globals.c @@ -399,6 +399,7 @@ address_item address_defaults = { #ifdef EXPERIMENTAL_SRS .srs_sender = NULL, #endif + .ignore_error = FALSE, #ifdef SUPPORT_I18N .utf8_msg = FALSE, .utf8_downcvt = FALSE, diff --git a/src/src/routers/queryprogram.c b/src/src/routers/queryprogram.c index fc92835c0..abba024db 100644 --- a/src/src/routers/queryprogram.c +++ b/src/src/routers/queryprogram.c @@ -130,7 +130,7 @@ while (generated != NULL) next->parent = addr; next->prop = *addr_prop; - next->prop.ignore_error |= ignore_error; + next->prop.ignore_error = next->prop.ignore_error || ignore_error; next->start_router = rblock->redirect_router; next->next = *addr_new; diff --git a/src/src/routers/redirect.c b/src/src/routers/redirect.c index 005ec6f47..9923af585 100644 --- a/src/src/routers/redirect.c +++ b/src/src/routers/redirect.c @@ -390,7 +390,7 @@ while (generated) { BOOL ignore_error = next->prop.ignore_error; next->prop = *addr_prop; - next->prop.ignore_error |= ignore_error; + next->prop.ignore_error = ignore_error || addr->prop.ignore_error; } if (errors_address) next->prop.errors_address = errors_address; -- 2.30.2