From: Alain Spineux Date: Mon, 3 Aug 2020 10:07:29 +0000 (+0200) Subject: tweak comment about not using SO_REUSEADDR for Dir & Fd SourceAddress X-Git-Tag: Release-11.3.2~1314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f52c047831abb27cbbeaadb56c800b4032efed9;p=thirdparty%2Fbacula.git tweak comment about not using SO_REUSEADDR for Dir & Fd SourceAddress --- diff --git a/bacula/src/lib/bsockcore.c b/bacula/src/lib/bsockcore.c index 7cb6aea0f1..28efbeae3a 100644 --- a/bacula/src/lib/bsockcore.c +++ b/bacula/src/lib/bsockcore.c @@ -390,6 +390,9 @@ bool BSOCKCORE::open(JCR *jcr, const char *name, char *host, char *service, /* Bind to the source address if it is set */ if (src_addr) { + /* It is not required to use SO_REUSEADDR here as DirSourceAddress & + * FdSourceAddress don't force the port of the source, only the address + */ if (bind(sockfd, src_addr->get_sockaddr(), src_addr->get_sockaddr_len()) < 0) { berrno be; save_errno = errno;