summaryrefslogtreecommitdiff
path: root/source3/smbd/ipc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-16 06:20:18 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-16 06:20:18 +0000
commitb590b27b45725993335c6c1f110bf1a9bb56513b (patch)
tree0c9e4e470a2e0c987f908a062c73a33cf658db61 /source3/smbd/ipc.c
parent6daa579e0f76a9318bcac9442d7209580bb58bbc (diff)
downloadsamba-b590b27b45725993335c6c1f110bf1a9bb56513b.tar.gz
samba-b590b27b45725993335c6c1f110bf1a9bb56513b.tar.bz2
samba-b590b27b45725993335c6c1f110bf1a9bb56513b.zip
- some tidying up in files.c
- handle null fsp in DEBUG() at end of reply_ntcreate_and_X(). Jeremy, can you fix this properly? - get snum right in print queue code in ipc.c (it was broken by my connections_struct changes). (This used to be commit b3dd3785751db2d5d0a80ffac9c3df01c9909891)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r--source3/smbd/ipc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index ae225956a2..be7fb8d8e3 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -833,20 +833,19 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn,
if (snum < 0 || !VALID_SNUM(snum)) return(False);
- if (uLevel==52)
- {
- count = get_printerdrivernumber(snum);
- DEBUG(3,("api_DosPrintQGetInfo: Driver files count: %d\n",count));
+ if (uLevel==52) {
+ count = get_printerdrivernumber(snum);
+ DEBUG(3,("api_DosPrintQGetInfo: Driver files count: %d\n",count));
} else {
- count = get_printqueue(SNUM(conn), conn,&queue,&status);
+ count = get_printqueue(snum, conn,&queue,&status);
}
if (mdrcnt > 0) *rdata = REALLOC(*rdata,mdrcnt);
desc.base = *rdata;
desc.buflen = mdrcnt;
if (init_package(&desc,1,count)) {
- desc.subcount = count;
- fill_printq_info(conn,snum,uLevel,&desc,count,queue,&status);
+ desc.subcount = count;
+ fill_printq_info(conn,snum,uLevel,&desc,count,queue,&status);
}
*rdata_len = desc.usedlen;