summaryrefslogtreecommitdiff
path: root/source3/services
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-08 15:09:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:09:58 -0500
commitef3f2c9675194efa17cfd4b4b5393a6e0a335bdf (patch)
treee60dc191e4747a7fb678297701cecb2d1b6c60cb /source3/services
parent034877ca335c64f6e2a08155c5856e03448397e1 (diff)
downloadsamba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.tar.gz
samba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.tar.bz2
samba-ef3f2c9675194efa17cfd4b4b5393a6e0a335bdf.zip
r13393: Do not initialize the lp_svcctl_list() value since it is handled
internally in services_db.c now. This prevents internal services from being listed twice (one internal and one external) when no 'svcctl list' parameter is explcitly set in smb.conf (This used to be commit 6c4ede6cee7e1d25a6357e959972e8d390c27fe3)
Diffstat (limited to 'source3/services')
-rw-r--r--source3/services/services_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index a16657c0ed..6c38c6ed0a 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -436,7 +436,7 @@ void svcctl_init_keys( void )
for ( i=0; builtin_svcs[i].servicename; i++ )
add_new_svc_name( key, subkeys, builtin_svcs[i].servicename );
- for ( i=0; service_list[i]; i++ ) {
+ for ( i=0; service_list && service_list[i]; i++ ) {
/* only add new services */
if ( regsubkey_ctr_key_exists( subkeys, service_list[i] ) )