git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2d255
)
Fix dfs_Enum: In form_junctions, correctly check for malloc failure
author
Volker Lendecke
<vl@samba.org>
Mon, 5 May 2008 10:45:12 +0000
(12:45 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 5 May 2008 10:45:12 +0000
(12:45 +0200)
(This used to be commit
1b1614c3261e1e93a2cad1f1063e28cbbb13f434
)
source3/smbd/msdfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/msdfs.c
b/source3/smbd/msdfs.c
index 14062e129d1f4ce7e77c4465efcd34c62188fc39..e321a8c8e4cfb1dcde98208467912b7b61edd6fd 100644
(file)
--- 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;