mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
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 commit is contained in:
parent
7b40ea3bbd
commit
cebb2abd2e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user