mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3-svcctl: Fix crash in _svcctl_EnumServicesStatusW().
The resume handle is a unique pointer, always check before dereference. Guenther
This commit is contained in:
parent
6af92c0228
commit
dd33abf649
@ -470,7 +470,9 @@ WERROR _svcctl_EnumServicesStatusW(pipes_struct *p,
|
||||
|
||||
*r->out.needed = (buffer_size > r->in.offered) ? buffer_size : r->in.offered;
|
||||
*r->out.services_returned = (uint32)num_services;
|
||||
*r->out.resume_handle = 0x0;
|
||||
if (r->out.resume_handle) {
|
||||
*r->out.resume_handle = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user