[SCM] Samba Shared Repository - branch v3-3-test updated

Karolin Seeger kseeger at samba.org
Mon Feb 8 08:15:57 MST 2010


The branch, v3-3-test has been updated
       via  22ca62f... s3: Fix an uninitialized variable reference
      from  0ee0ba8... s3: Fix malformed require_membership_of_sid.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 22ca62f7bb268e3695458d6105b847685112ec0f
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Nov 29 22:57:19 2009 +0100

    s3: Fix an uninitialized variable reference
    
    Fix bug #5885 (swat prints a bogus ip-address in smb.conf).

-----------------------------------------------------------------------

Summary of changes:
 source/web/cgi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/web/cgi.c b/source/web/cgi.c
index 015f9d1..72aa11c 100644
--- a/source/web/cgi.c
+++ b/source/web/cgi.c
@@ -656,7 +656,8 @@ const char *cgi_remote_addr(void)
 {
 	if (inetd_server) {
 		char addr[INET6_ADDRSTRLEN];
-		return get_peer_addr(1,addr,sizeof(addr));
+		get_peer_addr(1,addr,sizeof(addr));
+		return talloc_strdup(talloc_tos(), addr);
 	}
 	return getenv("REMOTE_ADDR");
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list