Skip to content

Commit

Permalink
Merge pull request #724 from atomicturtle/fix642
Browse files Browse the repository at this point in the history
- Fix #642, ossec-authd maxagents
  • Loading branch information
ddpbsd committed Dec 24, 2015
2 parents 7604574 + 5e41e53 commit 85b4ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addagent/validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ char *OS_AddNewAgent(const char *name, const char *ip, const char *id)
while (IDExist(nid)) {
i++;
snprintf(nid, 6, "%d", i);
if (i >= 4000) {
if (i >= (MAX_AGENTS + 1024)) {
return (NULL);
}
}
Expand Down

0 comments on commit 85b4ed5

Please sign in to comment.