X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Frouters%2Fipliteral.c;h=09775ed83220829c172c5039dd8bc4432ce200d6;hb=d8c9f31a3ec7a424ac9465604c397f1882b05567;hp=bc16b1b9853afa7daf0553563aa41f999862c224;hpb=c5db348c5e29e93e51389fa0079f829967c5da82;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/routers/ipliteral.c b/src/src/routers/ipliteral.c index bc16b1b98..09775ed83 100644 --- a/src/src/routers/ipliteral.c +++ b/src/src/routers/ipliteral.c @@ -2,7 +2,8 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2017 */ +/* Copyright (c) University of Cambridge 1995 - 2018 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -15,7 +16,7 @@ empty declarations ("undefined" in the Standard) we put in a dummy value. */ optionlist ipliteral_router_options[] = { - { "", opt_hidden, NULL } + { "", opt_hidden, {NULL} } }; /* Size of the options list. An extern variable has to be used so that its @@ -56,7 +57,6 @@ ipliteral_router_init(router_instance *rblock) ipliteral_router_options_block *ob = (ipliteral_router_options_block *)(rblock->options_block); */ -rblock = rblock; } @@ -115,9 +115,6 @@ const uschar *ip; int len = Ustrlen(domain); int rc, ipv; -addr_new = addr_new; /* Keep picky compilers happy */ -addr_succeed = addr_succeed; - DEBUG(D_route) debug_printf("%s router called for %s: domain = %s\n", rblock->name, addr->address, addr->domain); @@ -149,7 +146,7 @@ if (verify_check_this_host(CUSS&rblock->ignore_target_hosts, /* Set up a host item */ -h = store_get(sizeof(host_item)); +h = store_get(sizeof(host_item), FALSE); h->next = NULL; h->address = string_copy(ip); @@ -179,7 +176,7 @@ addr->host_list = h; rc = rf_get_errors_address(addr, rblock, verify, &addr->prop.errors_address); if (rc != OK) return rc; -/* Set up the additional and removeable headers for this address. */ +/* Set up the additional and removable headers for this address. */ rc = rf_get_munge_headers(addr, rblock, &addr->prop.extra_headers, &addr->prop.remove_headers);