mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Use correct size value for linearize call.
Jeremy.
This commit is contained in:
parent
bc3bd7a8e7
commit
a5df44f5b7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user