Author: metze Date: 2006-12-09 15:27:22 +0000 (Sat, 09 Dec 2006) New Revision: 20095
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20095 Log: make a complete copy of the binding string metze Modified: branches/SAMBA_4_0/source/libnet/libnet_become_dc.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/libnet_become_dc.c =================================================================== --- branches/SAMBA_4_0/source/libnet/libnet_become_dc.c 2006-12-09 14:49:17 UTC (rev 20094) +++ branches/SAMBA_4_0/source/libnet/libnet_become_dc.c 2006-12-09 15:27:22 UTC (rev 20095) @@ -1511,6 +1511,7 @@ struct libnet_BecomeDC_state *s = talloc_get_type(req->async.private, struct libnet_BecomeDC_state); struct composite_context *c = s->creq; + char *binding_str; WERROR status; c->status = dcerpc_ndr_request_recv(req); @@ -1523,8 +1524,13 @@ } /* this avoids the epmapper lookup on the 2nd connection */ - s->drsuapi3.binding = s->drsuapi2.binding; + binding_str = dcerpc_binding_string(s, s->drsuapi2.binding); + if (composite_nomem(binding_str, c)) return; + c->status = dcerpc_parse_binding(s, binding_str, &s->drsuapi3.binding); + talloc_free(binding_str); + if (!composite_is_ok(c)) return; + becomeDC_drsuapi_connect_send(s, &s->drsuapi3, becomeDC_drsuapi3_connect_recv); }