summaryrefslogtreecommitdiff
path: root/source3/msdfs
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-08 00:55:29 +0000
committerTim Potter <tpot@samba.org>2003-09-08 00:55:29 +0000
commit678de276cd6aedcab3ed051922e2ee33acfdac32 (patch)
tree1055e1f611223be9d614a8206ea490de5e06ed50 /source3/msdfs
parent4e901527f99be978a7868e206beed1891f87c3e9 (diff)
downloadsamba-678de276cd6aedcab3ed051922e2ee33acfdac32.tar.gz
samba-678de276cd6aedcab3ed051922e2ee33acfdac32.tar.bz2
samba-678de276cd6aedcab3ed051922e2ee33acfdac32.zip
When enumerating dfs shares loop from 0 to lp_numservices() instead of
relying on lp_servicename(n) to return an empty string for invalid service numbers. For some reason it is returning NULL now. Fixes bug 403. (This used to be commit cebb2abd2e946a5f9f2d84a7e8ae82eceecd0274)
Diffstat (limited to 'source3/msdfs')
-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);
}