diff options
author | Jeremy Allison <jra@samba.org> | 2007-06-22 19:33:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:33 -0500 |
commit | ae239fec6faa79018c818506b391b829ccd685f8 (patch) | |
tree | 06e4e3fa9206a2e45803c3f3660b790d84a9995b /source/registry | |
parent | d7b39e4534d85c84e8b24668ab7d7a93d5647c23 (diff) | |
download | samba-ae239fec6faa79018c818506b391b829ccd685f8.tar.gz samba-ae239fec6faa79018c818506b391b829ccd685f8.tar.xz samba-ae239fec6faa79018c818506b391b829ccd685f8.zip |
r23591: Fix bug #4725. Don't crash when no eventlogs specified. Needs
merging for 3.0.25b.
Jeremy.
Diffstat (limited to 'source/registry')
-rw-r--r-- | source/registry/reg_eventlog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/registry/reg_eventlog.c b/source/registry/reg_eventlog.c index d0da12637a3..b70b79f1e39 100644 --- a/source/registry/reg_eventlog.c +++ b/source/registry/reg_eventlog.c @@ -194,6 +194,10 @@ BOOL eventlog_add_source( const char *eventlog, const char *sourcename, int i; int numsources; + if (!elogs) { + return False; + } + for ( i = 0; elogs[i]; i++ ) { if ( strequal( elogs[i], eventlog ) ) break; |