summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-07-15 15:36:02 +0800
committerBo Yang <boyang@samba.org>2009-07-15 17:05:46 +0800
commit86865365ce487a8943370ea2f313000a6440ea9a (patch)
tree544f1b81c5eebc42f365d8435586bc50a92d8ddc /source3/rpc_server
parent9ef6af73b319048fc6f3891573f0e10066dffee6 (diff)
downloadsamba-86865365ce487a8943370ea2f313000a6440ea9a.tar.gz
samba-86865365ce487a8943370ea2f313000a6440ea9a.tar.bz2
samba-86865365ce487a8943370ea2f313000a6440ea9a.zip
S3: Small fix to get rid of annoying log message.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 44acf4d647..c58c08ecdc 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -540,11 +540,13 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p,
if (lp_browseable(snum) && lp_snum_ok(snum) &&
is_enumeration_allowed(p, snum) &&
(all_shares || !is_hidden_share(snum)) ) {
- DEBUG(10, ("counting service %s\n", lp_servicename(snum)));
+ DEBUG(10, ("counting service %s\n",
+ lp_servicename(snum) ? lp_servicename(snum) : "(null)"));
allowed[snum] = true;
num_entries++;
} else {
- DEBUG(10, ("NOT counting service %s\n", lp_servicename(snum)));
+ DEBUG(10, ("NOT counting service %s\n",
+ lp_servicename(snum) ? lp_servicename(snum) : "(null)"));
}
}