[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1918-ge9d1197

Volker Lendecke vlendec at samba.org
Sat May 30 07:53:29 GMT 2009


The branch, master has been updated
       via  e9d1197b4ef79e23067a27ecace5843926b2bf26 (commit)
      from  625851a50f74024f5918e0b348147457c2cc42ea (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e9d1197b4ef79e23067a27ecace5843926b2bf26
Author: Volker Lendecke <vl at samba.org>
Date:   Sat May 30 09:54:14 2009 +0200

    talloc_strdup "dir" in wb_context_init

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

Summary of changes:
 nsswitch/libwbclient/wbc_async.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/libwbclient/wbc_async.c b/nsswitch/libwbclient/wbc_async.c
index 6a572f4..5f985f9 100644
--- a/nsswitch/libwbclient/wbc_async.c
+++ b/nsswitch/libwbclient/wbc_async.c
@@ -200,10 +200,14 @@ struct wb_context *wb_context_init(TALLOC_CTX *mem_ctx, const char* dir)
 	result->is_priv = false;
 
 	if (dir != NULL) {
-		result->dir = dir;
+		result->dir = talloc_strdup(result, dir);
 	} else {
 		result->dir = winbindd_socket_dir();
 	}
+	if (result->dir == NULL) {
+		TALLOC_FREE(result);
+		return NULL;
+	}
 	return result;
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list