summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/msdfs/msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index afe523bf19..4c86cd0f94 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -919,7 +919,7 @@ int enum_msdfs_links(struct junction_map* jn)
if(!lp_host_msdfs())
return 0;
- for(i=0;*lp_servicename(i);i++) {
+ for(i=0;i < lp_numservices();i++) {
if(lp_msdfs_root(i))
form_junctions(i,jn,&jn_count);
}