[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1508-g7d6e4c7
Michael Adam
obnox at samba.org
Fri May 8 14:43:01 GMT 2009
The branch, master has been updated
via 7d6e4c7e950592112d09f7d98393c41e8097bba8 (commit)
from 66cf7e1835d5d711c91d0541b05eb11b61267ba8 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 7d6e4c7e950592112d09f7d98393c41e8097bba8
Author: Michael Adam <obnox at samba.org>
Date: Fri May 8 15:13:21 2009 +0200
s3:smbd: fix the fix for mapped IPv4 address handling in release_ip().
It was too late... Thanks Metze for noticing.
Michael
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 0f3e560..487358d 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1887,7 +1887,7 @@ received when we should release a specific IP
static void release_ip(const char *ip, void *priv)
{
char addr[INET6_ADDRSTRLEN];
- char *p;
+ char *p = addr;
client_socket_addr(get_client_fd(),addr,sizeof(addr));
@@ -1895,7 +1895,7 @@ static void release_ip(const char *ip, void *priv)
p = addr + 7;
}
- if ((strcmp(p, ip) == 0) || (strcmp(addr, ip) == 0)) {
+ if ((strcmp(p, ip) == 0) || ((p != addr) && strcmp(addr, ip) == 0)) {
/* we can't afford to do a clean exit - that involves
database writes, which would potentially mean we
are still running after the failover has finished -
--
Samba Shared Repository
More information about the samba-cvs
mailing list