X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/136fa39a5b1e950d26ccb2ffe6da5f41982d7593..dc8091e7b9eb80b77699ac59de3f39eedef65c04:/src/src/routers/redirect.c diff --git a/src/src/routers/redirect.c b/src/src/routers/redirect.c index 2efb42160..a69d36e39 100644 --- a/src/src/routers/redirect.c +++ b/src/src/routers/redirect.c @@ -655,8 +655,8 @@ if (!ugid.gid_set && pw != NULL) // eximsrs_db_set(FALSE, NULL); */ - if(ob->srs_alias != NULL ? (usedomain = expand_string(ob->srs_alias)) == NULL : 1) - usedomain = deliver_domain; + if (!(usedomain = ob->srs_alias ? expand_string(ob->srs_alias) : NULL)) + usedomain = string_copy(deliver_domain); if((n_srs = eximsrs_forward(&res, sender_address, usedomain)) == OK) {