mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libsmb: Ensure that whoami parses all the data provided to it
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
9e414233c8
commit
9b96ebea5c
@ -714,6 +714,13 @@ static void cli_posix_whoami_done(struct tevent_req *subreq)
|
||||
p += sid_size;
|
||||
num_rdata -= sid_size;
|
||||
}
|
||||
|
||||
if (num_rdata != 0) {
|
||||
tevent_req_nterror(req,
|
||||
NT_STATUS_INVALID_NETWORK_RESPONSE);
|
||||
return;
|
||||
}
|
||||
|
||||
tevent_req_done(req);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user