1
0
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:
Jeremy Allison 2007-12-29 14:43:32 -08:00
parent bc3bd7a8e7
commit a5df44f5b7

View File

@ -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;