.setval_type = REGISTRY_VALUE,
.data = &import_ctx
};
+ struct reg_parse_callback *parse_callback;
int ret = -1;
bool precheck_ok;
goto done;
}
- ret = reg_parse_file(import_fname,
- reg_import_adapter(frame, import_callback),
- parse_options);
+ parse_callback = reg_import_adapter(frame, import_callback);
+ if (parse_callback == NULL) {
+ d_printf("talloc failed\n");
+ goto done;
+ }
+
+ ret = reg_parse_file(import_fname, parse_callback, parse_options);
done:
talloc_free(frame);