s3-rpc_server: Add missing rng_fault_state in epmapper.
authorAndreas Schneider <asn@samba.org>
Thu, 1 Sep 2011 07:32:33 +0000 (09:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 1 Sep 2011 13:59:50 +0000 (15:59 +0200)
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

source3/rpc_server/epmapper/srv_epmapper.c

index fa3177ea9fb418d8004c2dc476097055f8ec015b..c492580258c4cfa79e6b9d489f0480d8edb6ecc0 100644 (file)
@@ -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;
        }