mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
r18932: In RegEnumvalue() and RegQueryValue(), the output buffer
size must match the real value of the data.
(This used to be commit e11108024a
)
This commit is contained in:
parent
49c73b5734
commit
855d12e567
@ -479,6 +479,8 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct
|
||||
memcpy( data, regval_data_p(val), *value_length );
|
||||
status = WERR_OK;
|
||||
}
|
||||
|
||||
*data_size = *value_length;
|
||||
}
|
||||
|
||||
TALLOC_FREE( regvals );
|
||||
@ -626,6 +628,8 @@ WERROR _winreg_EnumValue(pipes_struct *p, struct policy_handle *handle, uint32_t
|
||||
status = WERR_OK;
|
||||
}
|
||||
|
||||
*data_size = *value_length;
|
||||
|
||||
done:
|
||||
free_registry_value( val );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user