mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r24725: Don't segfault if hive file can't be found
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9553c20ced
commit
2daa8fa88d
@ -481,6 +481,8 @@ int main(int argc, char **argv)
|
||||
ctx->registry = reg_common_open_remote(remote, cmdline_credentials);
|
||||
} else if (file != NULL) {
|
||||
ctx->current = reg_common_open_file(file, cmdline_credentials);
|
||||
if (ctx->current == NULL)
|
||||
return 1;
|
||||
ctx->registry = ctx->current->context;
|
||||
ctx->path = talloc_strdup(ctx, "");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user