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 <[EMAIL PROTECTED]>
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:
diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c
index fb757a5..4f9e739 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;
--
Samba Shared Repository