diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-11-11 21:04:21 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-11-11 21:04:21 +0000 |
commit | 0fe373c1d685d2daf59913ef2ae971c56ea60107 (patch) | |
tree | 0ab156f8ba40486a60e420fd769a54e183fd6d32 /src | |
parent | e5de15b6291e882cf936f384b87a0d5d368d1caa (diff) |
Debug: remove router DSN config dump on startup
Diffstat (limited to 'src')
-rw-r--r-- | src/src/route.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/src/route.c b/src/src/route.c index c112169f7..83cf468b0 100644 --- a/src/src/route.c +++ b/src/src/route.c @@ -244,14 +244,12 @@ for (r = routers; r; r = r->next) /* Check for transport or no transport on certain routers */ - if ((r->info->ri_flags & ri_yestransport) != 0 && - r->transport_name == NULL && - !r->verify_only) + if ( (r->info->ri_flags & ri_yestransport) + && !r->transport_name && !r->verify_only) log_write(0, LOG_PANIC_DIE|LOG_CONFIG, "%s router:\n " "a transport is required for this router", r->name); - if ((r->info->ri_flags & ri_notransport) != 0 && - r->transport_name != NULL) + if ((r->info->ri_flags & ri_notransport) && r->transport_name) log_write(0, LOG_PANIC_DIE|LOG_CONFIG, "%s router:\n " "a transport must not be defined for this router", r->name); @@ -292,14 +290,16 @@ for (r = routers; r; r = r->next) /* Check redirect_router and pass_router are valid */ - if (r->redirect_router_name != NULL) + if (r->redirect_router_name) set_router(r, r->redirect_router_name, &(r->redirect_router), FALSE); - if (r->pass_router_name != NULL) + if (r->pass_router_name) set_router(r, r->pass_router_name, &(r->pass_router), TRUE); +#ifdef notdef DEBUG(D_route) debug_printf("DSN: %s %s\n", r->name, r->dsn_lasthop ? "lasthop set" : "propagating DSN"); +#endif } } |