From 6d8b4f59e41051bcdfc514cce59a4a286c480bda Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 1 Sep 2011 09:32:33 +0200 Subject: s3-rpc_server: Add missing rng_fault_state in epmapper. We need to raise an exception so we need to set the rng_fault_state for epm_Insert and epm_Delete if someone connects over a transport other than NCALRPC. Autobuild-User: Andreas Schneider Autobuild-Date: Thu Sep 1 15:59:50 CEST 2011 on sn-devel-104 --- source3/rpc_server/epmapper/srv_epmapper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c index fa3177ea9f..c492580258 100644 --- a/source3/rpc_server/epmapper/srv_epmapper.c +++ b/source3/rpc_server/epmapper/srv_epmapper.c @@ -306,6 +306,7 @@ error_status_t _epm_Insert(struct pipes_struct *p, /* If this is not a priviledged users, return */ if (p->transport != NCALRPC || !is_priviledged_pipe(p->session_info)) { + p->rng_fault_state = true; return EPMAPPER_STATUS_CANT_PERFORM_OP; } @@ -442,6 +443,7 @@ error_status_t _epm_Delete(struct pipes_struct *p, /* If this is not a priviledged users, return */ if (p->transport != NCALRPC || !is_priviledged_pipe(p->session_info)) { + p->rng_fault_state = true; return EPMAPPER_STATUS_CANT_PERFORM_OP; } -- cgit