summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 9b397bcdeb..dcc53cb8d0 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -618,7 +618,14 @@ static void usage(char *pname)
return(-1);
init_structs();
-
+
+#ifdef WITH_PROFILE
+ if (!profile_setup(False)) {
+ DEBUG(0,("ERROR: failed to setup profiling\n"));
+ return -1;
+ }
+#endif
+
/*
* Set the machine NETBIOS name if not already
* set from the config file.