Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-9-g49e5663
authorKarolin Seeger <kseeger@samba.org>
Mon, 5 May 2008 11:05:17 +0000 (06:05 -0500)
committerJeremy Allison <jra@samba.org>
Mon, 5 May 2008 19:55:43 +0000 (12:55 -0700)
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 <vl@samba.org>
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

index fb757a5f7469f76e9385c0ca64de2c0be3f71fa1..4f9e73967785b8ba4326112a485e39ec34a3a220 100644 (file)
@@ -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;