1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4-libnet Always return after composite_error()

This can and does cause crashes as multiple conflicting sets of callbacks run on
memory that may have been destroyed.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2012-04-23 17:27:02 +10:00
parent 3ffd0f8423
commit 4f7666f971
3 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,7 @@ static void continue_groupinfo_lookup(struct tevent_req *subreq)
- we're looking for only one at the moment */
if (s->lookup.out.rids->count == 0) {
composite_error(c, NT_STATUS_NO_SUCH_USER);
return;
}
/* TODO: find proper status code for more than one rid found */

View File

@ -1137,6 +1137,7 @@ static void continue_samr_close_handle(struct tevent_req *subreq)
/* did everything go fine ? */
if (!NT_STATUS_IS_OK(s->samrclose.out.result)) {
composite_error(c, s->samrclose.out.result);
return;
}
composite_done(c);

View File

@ -92,6 +92,7 @@ static void continue_userinfo_lookup(struct tevent_req *subreq)
- we're looking for only one at the moment */
if (s->lookup.out.rids->count == 0) {
composite_error(c, NT_STATUS_NO_SUCH_USER);
return;
}
/* TODO: find proper status code for more than one rid found */