diff options
Diffstat (limited to 'source4/smb_server/service.c')
-rw-r--r-- | source4/smb_server/service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index 180deaf8c5..bb74a5c2d9 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -73,7 +73,7 @@ static int find_service(const char *service) iService = lp_servicenumber(service); - if (iService >= 0 && !VALID_SNUM(iService)) { + if (iService >= 0 && !lp_snum_ok(iService)) { DEBUG(0,("Invalid snum %d for %s\n",iService, service)); iService = -1; } @@ -117,7 +117,8 @@ static NTSTATUS make_connection_snum(struct smbsrv_request *req, /* init ntvfs function pointers */ status = ntvfs_init_connection(req, type); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("ntvfs_init_connection failed for service %s\n", lp_servicename(SNUM(tcon)))); + DEBUG(0, ("ntvfs_init_connection failed for service %s\n", + lp_servicename(tcon->service))); return status; } |