diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-29 14:43:32 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-29 14:43:32 -0800 |
commit | f10074e84b41d141958912c3fb9f2c6fdbba68b3 (patch) | |
tree | 06c49322ad8e73364d6e169029880d037fa4635b | |
parent | 7cbdb48475b0340154fad60cb4b7cc53dc2bbcfd (diff) | |
download | samba-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.c | 2 |
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; |