1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00

r12116: got rid of composite_trigger_done() and composite_trigger_error(), and

instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback

this removes one of the common mistakes in writing a composite function
This commit is contained in:
Andrew Tridgell
2005-12-08 01:13:45 +00:00
committed by Gerald (Jerry) Carter
parent 99cf7dbb17
commit f9413ce792
14 changed files with 57 additions and 58 deletions

View File

@@ -153,7 +153,7 @@ struct composite_context *resolve_name_send(struct nbt_name *name, struct event_
struct ipv4_addr ip = interpret_addr2(state->name.name);
state->reply_addr = talloc_strdup(state, sys_inet_ntoa(ip));
if (!state->reply_addr) goto failed;
composite_trigger_done(c);
composite_done(c);
return c;
}