diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/src/deliver.c | 8 | ||||
-rw-r--r-- | src/src/ip.c | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/src/deliver.c b/src/src/deliver.c index 47368a860..8f0f350d7 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -3353,8 +3353,8 @@ while (!done) pipeheader[PIPE_HEADER_SIZE] = '\0'; DEBUG(D_deliver) - debug_printf("got %ld bytes (pipeheader) from transport process %d\n", - (long) got, pid); + debug_printf("got %ld bytes (pipeheader) '%c' from transport process %d\n", + (long) got, *id, pid); { /* If we can't decode the pipeheader, the subprocess seems to have a @@ -3469,7 +3469,7 @@ while (!done) /* Put the amount of data written into the parlist block */ - case 'S': + case 'S': /* Size */ memcpy(&(p->transport_count), ptr, sizeof(transport_count)); ptr += sizeof(transport_count); break; @@ -3559,7 +3559,7 @@ while (!done) if (*subid > '1') setflag(addr, af_tcp_fastopen_data); break; - case 'D': + case 'D': /* DSN */ if (!addr) goto ADDR_MISMATCH; memcpy(&(addr->dsn_aware), ptr, sizeof(addr->dsn_aware)); ptr += sizeof(addr->dsn_aware); diff --git a/src/src/ip.c b/src/src/ip.c index b50130be3..6ff8fe626 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -161,7 +161,10 @@ ip_bind(int sock, int af, uschar *address, int port) { union sockaddr_46 sin; int s_len = ip_addr(&sin, af, address, port); -return bind(sock, (struct sockaddr *)&sin, s_len); +int rc = bind(sock, (struct sockaddr *)&sin, s_len); +if (rc < 0) + log_write(0, LOG_MAIN, "bind of [%s]:%d failed", address, port); +return rc; } |