1
0
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:
Michael Adam 2007-12-29 02:16:38 +01:00
parent 7d0ec5bae1
commit d7aaec713e

View File

@ -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: