summaryrefslogtreecommitdiff
path: root/source4/librpc/tables.pl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/tables.pl')
-rw-r--r--source4/librpc/tables.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/librpc/tables.pl b/source4/librpc/tables.pl
index 5757dc000a..7ef1dbd14a 100644
--- a/source4/librpc/tables.pl
+++ b/source4/librpc/tables.pl
@@ -82,6 +82,11 @@ print TABLEC <<EOF;
NTSTATUS dcerpc_table_init(void)
{
+ static BOOL initialized = False;
+
+ if (initialized) return NT_STATUS_OK;
+ initialized = True;
+
$init_fns
return NT_STATUS_OK;