Skip to content

Commit c5da188

Browse files
crolopezvikman90
authored andcommitted
Fix bug when checking agent configuration in logcollector (#1225)
* Fix bug when checking agent configuration in logcollector * Do not bump version * Let the maximum file limit reached warning appear in Logcollector
1 parent 0d73e27 commit c5da188

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
1313
- Fixed invalid location string in plain-text alerts. ([#1213](https://github.com/wazuh/wazuh/pull/1213))
1414
- Fixed default stack size in threads on AIX and HP-UX. ([#1215](https://github.com/wazuh/wazuh/pull/1215))
1515
- Fix socket error during agent restart due to daemon start/stop order. ([#1221](https://github.com/wazuh/wazuh/issues/1221))
16+
- Fix bug when checking agent configuration in logcollector. ([#1225](https://github.com/wazuh/wazuh/issues/1225))
1617

1718

1819
## [v3.6.0] 2018-08-29

src/config/localfile-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int Read_Localfile(XML_NODE node, void *d1, __attribute__((unused)) void *d2)
3939

4040
log_config = (logreader_config *)d1;
4141

42-
if (current_files >= maximum_files) {
42+
if (maximum_files && current_files >= maximum_files) {
4343
mwarn(FILE_LIMIT, maximum_files);
4444
return 0;
4545
}

0 commit comments

Comments
 (0)