summaryrefslogtreecommitdiff
path: root/source3/smbparse.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-14 18:37:55 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-14 18:37:55 +0000
commit8fe499f7752ec2d7f2c1bd71e73077b1f1675125 (patch)
tree416915b01a199a8960303b8bbeee8232959ba065 /source3/smbparse.c
parent6084046eede3652d7cabafb33227e940f00f92a8 (diff)
downloadsamba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.tar.gz
samba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.tar.bz2
samba-8fe499f7752ec2d7f2c1bd71e73077b1f1675125.zip
byteorder.h:
created a RW_PIVAL macro which was missing. smbparse.c: smb_io_dom_sid() was storing its sub-authorities as uint16s instead of uint32s. used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL. pipentlsa.c: not sure. something to do with the Query Info reply. pipeutil.c: make_rpc_reply() had the packed representation field set to 0x0100 0000 instead of 0x1000 0000, which had the interesting result of turning all uint32 and uint16 field byte ordering the other way round! (This used to be commit eafd6e9e797c5badb07059d7eddabd6a8947c830)
Diffstat (limited to 'source3/smbparse.c')
-rw-r--r--source3/smbparse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbparse.c b/source3/smbparse.c
index 39200f5351..855d46420a 100644
--- a/source3/smbparse.c
+++ b/source3/smbparse.c
@@ -71,9 +71,7 @@ char* smb_io_dom_sid(BOOL io, DOM_SID *sid, char *q, char *base, int align, int
DEBUG(5,("%s%04x smb_io_dom_sid\n", tab_depth(depth), PTR_DIFF(q, base)));
depth++;
- q = align_offset(q, base, align);
-
- DBG_RW_CVAL("num_auths ", depth, base, io, q, sid->num_auths); q++;
+ DBG_RW_IVAL("num_auths ", depth, base, io, q, sid->num_auths); q += 4;
DBG_RW_CVAL("sid_no ", depth, base, io, q, sid->sid_no); q++;
DBG_RW_CVAL("num_auths ", depth, base, io, q, sid->num_auths); q++;
@@ -87,7 +85,7 @@ char* smb_io_dom_sid(BOOL io, DOM_SID *sid, char *q, char *base, int align, int
/* oops! XXXX should really issue a warning here... */
if (sid->num_auths > MAXSUBAUTHS) sid->num_auths = MAXSUBAUTHS;
- DBG_RW_PSVAL("num_auths ", depth, base, io, q, sid->sub_auths, sid->num_auths); q += sid->num_auths * 2;
+ DBG_RW_PIVAL("num_auths ", depth, base, io, q, sid->sub_auths, sid->num_auths); q += sid->num_auths * 4;
return q;
}