diff options
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 0a11919577..7581eb6001 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -179,12 +179,11 @@ static BOOL open_sockets_smbd(BOOL is_daemon,const char *smb_ports) if (!smb_ports) { ports = lp_smb_ports(); if (!ports || !*ports) { - ports = smb_xstrdup(SMB_PORTS); - } else { - ports = smb_xstrdup(ports); + ports = SMB_PORTS; } + ports = strdup(ports); } else { - ports = smb_xstrdup(smb_ports); + ports = strdup(smb_ports); } if (lp_interfaces() && lp_bind_interfaces_only()) { @@ -374,10 +373,6 @@ static BOOL open_sockets_smbd(BOOL is_daemon,const char *smb_ports) return False; } - /* Load DSO's */ - if(lp_modules()) - smb_load_modules(lp_modules()); - return True; } /* The parent doesn't need this socket */ @@ -544,7 +539,7 @@ static void decrement_smbd_process_count(void) Exit the server. ****************************************************************************/ -void exit_server(const char *reason) +void exit_server(char *reason) { static int firsttime=1; extern char *last_inbuf; @@ -867,7 +862,6 @@ static BOOL init_structs(void ) smbd_process(); uni_group_cache_shutdown(); - namecache_shutdown(); exit_server("normal exit"); return(0); } |