struct wb_dsgetdcname_state {
const char *domain_name;
+ struct GUID domain_guid;
struct netr_DsRGetDCNameInfo *dcinfo;
};
struct tevent_req *req, *subreq;
struct wb_dsgetdcname_state *state;
struct dcerpc_binding_handle *child_binding_handle = NULL;
- struct GUID guid;
struct GUID *guid_ptr = NULL;
req = tevent_req_create(mem_ctx, &state, struct wb_dsgetdcname_state);
if (domain_guid != NULL) {
/* work around a const issue in rpccli_ autogenerated code */
- guid = *domain_guid;
- guid_ptr = &guid;
+ state->domain_guid = *domain_guid;
+ guid_ptr = &state->domain_guid;
}
state->domain_name = talloc_strdup(state, domain_name);