]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: add DCESRV_COMPAT_NOT_USED_ON_WIRE() helper macro
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Sep 2024 11:56:38 +0000 (13:56 +0200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 30 Oct 2024 23:08:36 +0000 (23:08 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/rpc_server/rpc_pipes.h

index 17922b07bbe33de51e28887eac2c86b558e7f348..09ad8d7a523b139d154a2b7807301f1878562099 100644 (file)
@@ -70,4 +70,10 @@ void *_find_policy_by_hnd(struct pipes_struct *p,
 bool close_policy_hnd(struct pipes_struct *p, struct policy_handle *hnd);
 bool pipe_access_check(struct pipes_struct *p);
 
+#define DCESRV_COMPAT_NOT_USED_ON_WIRE(__opname) \
+void _## __opname(struct pipes_struct *p, struct __opname *r) \
+{ \
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR; \
+}
+
 #endif /* _RPC_PIPES_H_ */