1
0
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:
Jelmer Vernooij
2007-08-27 21:24:44 +00:00
committed by Gerald (Jerry) Carter
parent 9553c20ced
commit 2daa8fa88d

View File

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