1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

s4-libnet Always return after composite_error()

These instances should not cause a problem, but make it easier to audit for
this kind of problem in the future with grep.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 23 14:29:45 CEST 2012 on sn-devel-104
This commit is contained in:
Andrew Bartlett 2012-04-23 17:28:39 +10:00
parent 4f7666f971
commit 5960b7b2a4
4 changed files with 8 additions and 1 deletions

View File

@ -680,10 +680,11 @@ static void continue_groups_enumerated(struct tevent_req *subreq)
/* that's it */
composite_done(c);
return;
} else {
/* something went wrong */
composite_error(c, c->status);
return;
}
}

View File

@ -1146,10 +1146,12 @@ static void continue_users_enumerated(struct tevent_req *subreq)
/* that's it */
composite_done(c);
return;
} else {
/* something went wrong */
composite_error(c, c->status);
return;
}
}

View File

@ -84,8 +84,10 @@ static void sid2gid_recv_gid(struct composite_context *ctx)
ids->xid.type == ID_TYPE_GID) {
state->gid = ids->xid.id;
composite_done(state->ctx);
return;
} else {
composite_error(state->ctx, NT_STATUS_INVALID_SID);
return;
}
}

View File

@ -84,8 +84,10 @@ static void sid2uid_recv_uid(struct composite_context *ctx)
ids->xid.type == ID_TYPE_UID) {
state->uid = ids->xid.id;
composite_done(state->ctx);
return;
} else {
composite_error(state->ctx, NT_STATUS_INVALID_SID);
return;
}
}