adsldp: Fix IDirectorySearch::FreeColumn() for ADSTYPE_NT_SECURITY_DESCRIPTOR.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2020-04-13 18:07:13 +08:00 committed by Alexandre Julliard
parent 7b138e929d
commit 125414193f
1 changed files with 1 additions and 1 deletions

View File

@ -1758,7 +1758,7 @@ static HRESULT WINAPI search_FreeColumn(IDirectorySearch *iface, PADS_SEARCH_COL
if (col->hReserved)
{
if (col->dwADsType == ADSTYPE_OCTET_STRING)
if (col->dwADsType == ADSTYPE_OCTET_STRING || col->dwADsType == ADSTYPE_NT_SECURITY_DESCRIPTOR)
ldap_value_free_len(col->hReserved);
else
ldap_value_freeW(col->hReserved);