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:
parent
4f7666f971
commit
5960b7b2a4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user