mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r16530: Send monitor messages only after successful receiving result of a stage.
rafal (This used to be commit e5dc6311633146e44063ba5eb20488468af75914)
This commit is contained in:
parent
fb3afe422f
commit
3ef6f35dde
@ -767,6 +767,7 @@ static void usermod_handler(struct rpc_request *req)
|
||||
case USERMOD_LOOKUP:
|
||||
c->status = usermod_lookup(c, s);
|
||||
|
||||
if (NT_STATUS_IS_OK(c->status)) {
|
||||
/* monitor message */
|
||||
msg.type = rpc_lookup_name;
|
||||
msg_lookup = talloc(s, struct msg_rpc_lookup_name);
|
||||
@ -775,11 +776,13 @@ static void usermod_handler(struct rpc_request *req)
|
||||
msg_lookup->count = s->lookupname.out.rids.count;
|
||||
msg.data = (void*)msg_lookup;
|
||||
msg.data_size = sizeof(*msg_lookup);
|
||||
}
|
||||
break;
|
||||
|
||||
case USERMOD_OPEN:
|
||||
c->status = usermod_open(c, s);
|
||||
|
||||
if (NT_STATUS_IS_OK(c->status)) {
|
||||
/* monitor message */
|
||||
msg.type = rpc_open_user;
|
||||
msg_open = talloc(s, struct msg_rpc_open_user);
|
||||
@ -788,24 +791,29 @@ static void usermod_handler(struct rpc_request *req)
|
||||
msg_open->access_mask = s->openuser.in.rid;
|
||||
msg.data = (void*)msg_open;
|
||||
msg.data_size = sizeof(*msg_open);
|
||||
}
|
||||
break;
|
||||
|
||||
case USERMOD_QUERY:
|
||||
c->status = usermod_query(c, s);
|
||||
|
||||
if (NT_STATUS_IS_OK(c->status)) {
|
||||
/* monitor message */
|
||||
msg.type = rpc_query_user;
|
||||
msg.data = NULL;
|
||||
msg.data_size = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
case USERMOD_MODIFY:
|
||||
c->status = usermod_modify(c, s);
|
||||
|
||||
if (NT_STATUS_IS_OK(c->status)) {
|
||||
/* monitor message */
|
||||
msg.type = rpc_set_user;
|
||||
msg.data = NULL;
|
||||
msg.data_size = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user