From f4b38c07515b02265591d20b9ec9f77cf81fa9c2 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Mon, 5 May 2008 06:05:17 -0500 Subject: [PATCH] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-9-g49e5663 The branch, v3-2-stable has been updated via 49e56637971c8ae2f091aa61c6f6c878b4accd23 (commit) from 52b64605e8210234118c445e416ad0c7980a730c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable - Log ----------------------------------------------------------------- commit 49e56637971c8ae2f091aa61c6f6c878b4accd23 Author: Volker Lendecke Date: Mon May 5 12:45:12 2008 +0200 Fix dfs_Enum: In form_junctions, correctly check for malloc failure (cherry picked from commit 1b1614c3261e1e93a2cad1f1063e28cbbb13f434) ----------------------------------------------------------------------- Summary of changes: source/smbd/msdfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: --- source/smbd/msdfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c index fb757a5f746..4f9e7396778 100644 --- a/source/smbd/msdfs.c +++ b/source/smbd/msdfs.c @@ -1468,7 +1468,7 @@ static int form_junctions(TALLOC_CTX *ctx, */ jucn[cnt].service_name = talloc_strdup(ctx,service_name); jucn[cnt].volume_name = talloc_strdup(ctx, ""); - if (!jucn[cnt].service_name || jucn[cnt].volume_name) { + if (!jucn[cnt].service_name || !jucn[cnt].volume_name) { goto out; } jucn[cnt].referral_count = 1; -- 2.47.3