summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-05 12:45:12 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 12:45:12 +0200
commit768c0d6b22f85ff9fe34922e30a822c69e1d5bd7 (patch)
tree5416ffa46aee229cbcdcbd47090bdfc32bfc1590 /source3
parent2f2d255e1a4b8c3f9665b4a56475e2019f912042 (diff)
downloadsamba-768c0d6b22f85ff9fe34922e30a822c69e1d5bd7.tar.gz
samba-768c0d6b22f85ff9fe34922e30a822c69e1d5bd7.tar.bz2
samba-768c0d6b22f85ff9fe34922e30a822c69e1d5bd7.zip
Fix dfs_Enum: In form_junctions, correctly check for malloc failure
(This used to be commit 1b1614c3261e1e93a2cad1f1063e28cbbb13f434)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 14062e129d..e321a8c8e4 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -1459,7 +1459,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;