mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4:registry - move the UTF16 length calculation for "reg_key_get_info" into the RPC server code
It does fit better there.
This commit is contained in:
@ -916,9 +916,6 @@ static WERROR ldb_get_key_info(TALLOC_CTX *mem_ctx,
|
||||
el = ldb_msg_find_element(kd->subkeys[i], "key");
|
||||
*max_subkeynamelen = MAX(*max_subkeynamelen, el->values[0].length);
|
||||
}
|
||||
|
||||
/* for UTF16 encoding */
|
||||
*max_subkeynamelen *= 2;
|
||||
}
|
||||
|
||||
if (max_valnamelen != NULL || max_valbufsize != NULL) {
|
||||
@ -948,11 +945,6 @@ static WERROR ldb_get_key_info(TALLOC_CTX *mem_ctx,
|
||||
talloc_free(data.data);
|
||||
}
|
||||
}
|
||||
|
||||
if (max_valnamelen != NULL) {
|
||||
/* for UTF16 encoding */
|
||||
*max_valnamelen *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
talloc_free(default_value.data);
|
||||
|
Reference in New Issue
Block a user