summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-09-01 09:32:33 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-01 15:59:50 +0200
commit6d8b4f59e41051bcdfc514cce59a4a286c480bda (patch)
treeedf227b69bf4188e0feb654a51ecacf9740fdd52 /source3/rpc_server
parentae292ed1806474fdbae1aef9776a933316e057bf (diff)
downloadsamba-6d8b4f59e41051bcdfc514cce59a4a286c480bda.tar.gz
samba-6d8b4f59e41051bcdfc514cce59a4a286c480bda.tar.bz2
samba-6d8b4f59e41051bcdfc514cce59a4a286c480bda.zip
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 <asn@cryptomilk.org> Autobuild-Date: Thu Sep 1 15:59:50 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/epmapper/srv_epmapper.c2
1 files changed, 2 insertions, 0 deletions
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;
}