diff options
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index c2162a091b..a0c9ab7c56 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -476,7 +476,10 @@ static void init_structs(void) conn_init(); file_init(); init_rpc_pipe_hnd(); /* for RPC pipes */ - init_policy_hnd(MAX_SERVER_POLICY_HANDLES); /* for policy handles */ + if (!init_policy_hnd(MAX_SERVER_POLICY_HANDLES)) + { + exit_server("could not allocate policy handles\n"); + } init_printer_hnd(); /* for SPOOLSS handles */ init_dptrs(); init_dfs_table(); |