diff options
author | Derrell Lipman <derrell@samba.org> | 2005-03-31 20:28:47 +0000 |
---|---|---|
committer | Derrell Lipman <derrell@samba.org> | 2005-03-31 20:28:47 +0000 |
commit | 1e56176f0432090825665365cee65164ae2ff096 (patch) | |
tree | 4a7d82403549d89011040940817738e5020709c3 /source/param | |
parent | cff587fb19b31e6b16cd9a681d3e8349b0337323 (diff) | |
download | samba-1e56176f0432090825665365cee65164ae2ff096.tar.gz samba-1e56176f0432090825665365cee65164ae2ff096.tar.xz samba-1e56176f0432090825665365cee65164ae2ff096.zip |
r6155: Fixes bug #1133
Added provision for overloading some global configuration options via the new,
per-user file ~/.smb/smb.conf.append which is read after the global config
file is read (and only if the global config file was read). This leave the
original, BC behavior of ~/.smb/smb.conf which, if found, is read but causes
the global config file to not be read.
Also fixed a potential seg fault in to lp_dump_one().
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index f28b0c49ae4..8ec7efddcdc 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -73,7 +73,7 @@ extern pstring user_socket_options; /* some helpful bits */ #define LP_SNUM_OK(i) (((i) >= 0) && ((i) < iNumServices) && ServicePtrs[(i)]->valid) -#define VALID(i) ServicePtrs[i]->valid +#define VALID(i) (ServicePtrs != NULL && ServicePtrs[i]->valid) int keepalive = DEFAULT_KEEPALIVE; BOOL use_getwd_cache = True; |