[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-test-1596-g24f68b9
Kai Blin
kai at samba.org
Mon Jan 21 17:02:53 GMT 2008
The branch, v3-2-test has been updated
via 24f68b90cca111256a7b03f7062cb57c2b08a0d6 (commit)
from 3ad798d803b3b023533bb48e6993885f22b96095 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 24f68b90cca111256a7b03f7062cb57c2b08a0d6
Author: Kai Blin <kai at samba.org>
Date: Mon Jan 21 18:01:55 2008 +0100
util_sock: Don't return a pointer to freed memory.
Fix a bug in my bugfix. Thanks to vl for spotting that one.
-----------------------------------------------------------------------
Summary of changes:
source/lib/util_sock.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index f524d0d..a3975f6 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -2083,7 +2083,8 @@ const char *get_mydnsfullname(void)
if (!memcache_lookup(NULL, SINGLETON_CACHE,
data_blob_string_const("get_mydnsfullname"),
&tmp)) {
- tmp = data_blob_string_const(res->ai_canonname);
+ tmp = data_blob_talloc(talloc_tos(), res->ai_canonname,
+ strlen(res->ai_canonname) + 1);
}
freeaddrinfo(res);
--
Samba Shared Repository
More information about the samba-cvs
mailing list