summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-29 14:43:32 -0800
committerJeremy Allison <jra@samba.org>2007-12-29 14:43:32 -0800
commitf10074e84b41d141958912c3fb9f2c6fdbba68b3 (patch)
tree06c49322ad8e73364d6e169029880d037fa4635b
parent7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd (diff)
downloadsamba-f10074e84b41d141958912c3fb9f2c6fdbba68b3.tar.gz
samba-f10074e84b41d141958912c3fb9f2c6fdbba68b3.tar.bz2
samba-f10074e84b41d141958912c3fb9f2c6fdbba68b3.zip
Use correct size value for linearize call.
Jeremy. (This used to be commit a5df44f5b7887d10c1e1a0b7a3dd05bcf31015e1)
-rw-r--r--source3/winbindd/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 6a4f531c5f..33674d2cf7 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -1030,10 +1030,10 @@ static bool send_getdc_request(struct sockaddr_storage *dc_ss,
return false;
}
- sid_linearize(p, sid_size, sid);
if (sid_size + 8 > sizeof(outbuf) - PTR_DIFF(p, outbuf)) {
return false;
}
+ sid_linearize(p, sizeof(outbuf) - PTR_DIFF(p, outbuf), sid);
p += sid_size;