mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Handle NULL talloc context in libnet_smbconf_format_registry_value().
Maybe we should generate a new context instead of returning NULL? Michael
This commit is contained in:
parent
7d0ec5bae1
commit
d7aaec713e
@ -227,7 +227,10 @@ char *libnet_smbconf_format_registry_value(TALLOC_CTX *mem_ctx,
|
||||
{
|
||||
char *result = NULL;
|
||||
|
||||
/* what if mem_ctx = NULL? */
|
||||
/* alternatively, create a new talloc context? */
|
||||
if (mem_ctx == NULL) {
|
||||
return result;
|
||||
}
|
||||
|
||||
switch (value->type) {
|
||||
case REG_DWORD:
|
||||
|
Loading…
Reference in New Issue
Block a user