summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c2
-rw-r--r--source3/smbd/server_exit.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 1b06851114..1b9e793e4c 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1225,9 +1225,11 @@ extern void build_options(bool screen);
if (!NT_STATUS_IS_OK(rpc_netdfs_init(NULL))) {
exit(1);
}
+#ifdef DEVELOPER
if (!NT_STATUS_IS_OK(rpc_rpcecho_init(NULL))) {
exit(1);
}
+#endif
if (!NT_STATUS_IS_OK(rpc_dssetup_init(NULL))) {
exit(1);
}
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index 65151a108c..ca906fad4d 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -131,7 +131,9 @@ static void exit_server_common(enum server_exit_reason how,
if (am_parent) {
rpc_wkssvc_shutdown();
rpc_dssetup_shutdown();
+#ifdef DEVELOPER
rpc_rpcecho_shutdown();
+#endif
rpc_netdfs_shutdown();
rpc_initshutdown_shutdown();
rpc_eventlog_shutdown();