diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-12-20 18:28:12 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-12-23 15:38:29 +0000 |
commit | f40d5be37b9adca10b16e6b576f84c65f69899f5 (patch) | |
tree | 5ff07733ba1967779d9dae5c758baf14d4fab732 /src | |
parent | f794c12b6991a528c7a950b05a6d4578f1041be8 (diff) |
tidying
Diffstat (limited to 'src')
-rw-r--r-- | src/src/EDITME | 4 | ||||
-rw-r--r-- | src/src/deliver.c | 12 | ||||
-rw-r--r-- | src/src/readconf.c | 4 | ||||
-rw-r--r-- | src/src/tls-openssl.c | 21 |
4 files changed, 16 insertions, 25 deletions
diff --git a/src/src/EDITME b/src/src/EDITME index ab7f18588..a3b021218 100644 --- a/src/src/EDITME +++ b/src/src/EDITME @@ -487,10 +487,6 @@ EXIM_MONITOR=eximon.bin # CFLAGS += -I/usr/local/include # LDFLAGS += -lopendmarc -# Uncomment the following line to enable support for checking certificate -# ownership -# EXPERIMENTAL_CERTNAMES=yes - # Uncomment the following line to add DANE support # Note: Enabling this unconditionally overrides DISABLE_DNSSEC # EXPERIMENTAL_DANE=yes diff --git a/src/src/deliver.c b/src/src/deliver.c index e67c06183..6eb9a65d5 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -6840,16 +6840,13 @@ prevents actual delivery. */ else if (!dont_deliver) retry_update(&addr_defer, &addr_failed, &addr_succeed); -/* Send DSN for successful messages */ -addr_dsntmp = addr_succeed; +/* Send DSN for successful messages if requested */ addr_senddsn = NULL; -while(addr_dsntmp) +for (addr_dsntmp = addr_succeed; addr_dsntmp; addr_dsntmp = addr_dsntmp->next) { /* af_ignore_error not honored here. it's not an error */ - DEBUG(D_deliver) - { - debug_printf("DSN: processing router : %s\n" + DEBUG(D_deliver) debug_printf("DSN: processing router : %s\n" "DSN: processing successful delivery address: %s\n" "DSN: Sender_address: %s\n" "DSN: orcpt: %s flags: %d\n" @@ -6864,7 +6861,6 @@ while(addr_dsntmp) addr_dsntmp->address, addr_dsntmp->dsn_aware ); - } /* send report if next hop not DSN aware or a router flagged "last DSN hop" and a report was requested */ @@ -6884,8 +6880,6 @@ while(addr_dsntmp) } else DEBUG(D_deliver) debug_printf("DSN: not sending DSN success message\n"); - - addr_dsntmp = addr_dsntmp->next; } if (addr_senddsn) diff --git a/src/src/readconf.c b/src/src/readconf.c index 6f97dad69..8dd5915e4 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -4299,7 +4299,7 @@ for (i = config_lines; i; i = i->next) } /* router/acl/transport block names */ - else if (current[strlen(current)-1] == ':' && !Ustrchr(current, '=')) + else if (current[Ustrlen(current)-1] == ':' && !Ustrchr(current, '=')) { printf("%*s%s\n", TS, "", current); indent = 2 * TS; @@ -4312,7 +4312,7 @@ for (i = config_lines; i; i = i->next) ) ) { - if (p = Ustrchr(current, '=')) + if ((p = Ustrchr(current, '='))) { *p = '\0'; printf("%*s%s = %s\n", indent, "", current, hidden); diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 7417790e7..1bb922faa 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -423,7 +423,7 @@ else uschar * name; int rc; while ((name = string_nextinlist(&list, &sep, NULL, 0))) - if ((rc = X509_check_host(cert, name, 0, + if ((rc = X509_check_host(cert, CCS name, 0, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS | X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS, NULL))) @@ -932,7 +932,7 @@ if (cbinfo->privatekey != NULL && of the expansion is an empty string, ignore it also, and assume the private key is in the same file as the certificate. */ -if (expanded != NULL && *expanded != 0) +if (expanded && *expanded) { DEBUG(D_tls) debug_printf("tls_privatekey file %s\n", expanded); if (!SSL_CTX_use_PrivateKey_file(sctx, CS expanded, SSL_FILETYPE_PEM)) @@ -941,21 +941,22 @@ if (expanded != NULL && *expanded != 0) } #ifndef DISABLE_OCSP -if (cbinfo->is_server && cbinfo->u_ocsp.server.file != NULL) +if (cbinfo->is_server && cbinfo->u_ocsp.server.file) { if (!expand_check(cbinfo->u_ocsp.server.file, US"tls_ocsp_file", &expanded)) return DEFER; - if (expanded != NULL && *expanded != 0) + if (expanded && *expanded) { DEBUG(D_tls) debug_printf("tls_ocsp_file %s\n", expanded); - if (cbinfo->u_ocsp.server.file_expanded && - (Ustrcmp(expanded, cbinfo->u_ocsp.server.file_expanded) == 0)) + if ( cbinfo->u_ocsp.server.file_expanded + && (Ustrcmp(expanded, cbinfo->u_ocsp.server.file_expanded) == 0)) { - DEBUG(D_tls) - debug_printf("tls_ocsp_file value unchanged, using existing values.\n"); - } else { - ocsp_load_response(sctx, cbinfo, expanded); + DEBUG(D_tls) debug_printf(" - value unchanged, using existing values\n"); + } + else + { + ocsp_load_response(sctx, cbinfo, expanded); } } } |