Changeset 988 for vendor/current/source4/libnet/groupinfo.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/libnet/groupinfo.c
r860 r988 32 32 33 33 struct groupinfo_state { 34 struct dcerpc_ pipe *pipe;34 struct dcerpc_binding_handle *binding_handle; 35 35 struct policy_handle domain_handle; 36 36 struct policy_handle group_handle; … … 88 88 s->monitor_fn(&msg); 89 89 } 90 90 91 91 /* have we actually got name resolved 92 92 - we're looking for only one at the moment */ … … 110 110 /* send request */ 111 111 subreq = dcerpc_samr_OpenGroup_r_send(s, c->event_ctx, 112 s-> pipe->binding_handle,112 s->binding_handle, 113 113 &s->opengroup); 114 114 if (composite_nomem(subreq, c)) return; … … 136 136 if (!composite_is_ok(c)) return; 137 137 138 if (!NT_STATUS_IS_OK(s-> querygroupinfo.out.result)) {139 composite_error(c, s-> querygroupinfo.out.result);138 if (!NT_STATUS_IS_OK(s->opengroup.out.result)) { 139 composite_error(c, s->opengroup.out.result); 140 140 return; 141 141 } … … 162 162 subreq = dcerpc_samr_QueryGroupInfo_r_send(s, 163 163 c->event_ctx, 164 s-> pipe->binding_handle,164 s->binding_handle, 165 165 &s->querygroupinfo); 166 166 if (composite_nomem(subreq, c)) return; … … 213 213 /* queue rpc call, set event handling and new state */ 214 214 subreq = dcerpc_samr_Close_r_send(s, c->event_ctx, 215 s-> pipe->binding_handle,215 s->binding_handle, 216 216 &s->samrclose); 217 217 if (composite_nomem(subreq, c)) return; … … 265 265 * @param io arguments and results of the call 266 266 */ 267 struct composite_context *libnet_rpc_groupinfo_send(struct dcerpc_pipe *p, 267 struct composite_context *libnet_rpc_groupinfo_send(TALLOC_CTX *mem_ctx, 268 struct tevent_context *ev, 269 struct dcerpc_binding_handle *b, 268 270 struct libnet_rpc_groupinfo *io, 269 271 void (*monitor)(struct monitor_msg*)) … … 274 276 struct tevent_req *subreq; 275 277 276 if (! p|| !io) return NULL;277 278 c = composite_create( p, dcerpc_event_context(p));278 if (!b || !io) return NULL; 279 280 c = composite_create(mem_ctx, ev); 279 281 if (c == NULL) return c; 280 282 … … 285 287 286 288 s->level = io->in.level; 287 s-> pipe = p;289 s->binding_handle= b; 288 290 s->domain_handle = io->in.domain_handle; 289 291 s->monitor_fn = monitor; … … 300 302 /* send request */ 301 303 subreq = dcerpc_samr_OpenGroup_r_send(s, c->event_ctx, 302 p->binding_handle,304 s->binding_handle, 303 305 &s->opengroup); 304 306 if (composite_nomem(subreq, c)) return c; … … 322 324 /* send request */ 323 325 subreq = dcerpc_samr_LookupNames_r_send(s, c->event_ctx, 324 p->binding_handle,326 s->binding_handle, 325 327 &s->lookup); 326 328 if (composite_nomem(subreq, c)) return c; … … 372 374 */ 373 375 374 NTSTATUS libnet_rpc_groupinfo(struct dcerpc_pipe *p, 376 NTSTATUS libnet_rpc_groupinfo(struct tevent_context *ev, 377 struct dcerpc_binding_handle *b, 375 378 TALLOC_CTX *mem_ctx, 376 379 struct libnet_rpc_groupinfo *io) 377 380 { 378 struct composite_context *c = libnet_rpc_groupinfo_send(p, io, NULL); 381 struct composite_context *c = libnet_rpc_groupinfo_send(mem_ctx, ev, b, 382 io, NULL); 379 383 return libnet_rpc_groupinfo_recv(c, mem_ctx, io); 380 384 }
Note:
See TracChangeset
for help on using the changeset viewer.