Skip to content

ossec-remoted crashes when an agent has ip address of 'any' #982

@ddpbsd

Description

@ddpbsd

I'm getting the following on a recent OpenBSD snapshot:

# ./ossec-remoted -df
2016/10/31 13:44:24 ossec-remoted: DEBUG: Starting ...
2016/10/31 13:44:24 ossec-remoted: INFO: Started (pid: 66623).
2016/10/31 13:44:24 ossec-remoted: DEBUG: Forking remoted: '0'.
#2016/10/31 13:44:24 ossec-remoted: INFO: Started (pid: 84591).
2016/10/31 13:44:24 ossec-remoted: DEBUG: Running manager_init
2016/10/31 13:44:24 ossec-remoted: INFO: (unix_domain) Maximum send buffer set to: '6400'.
2016/10/31 13:44:24 ossec-remoted(4111): INFO: Maximum number of agents allowed: '2048'.
2016/10/31 13:44:24 ossec-remoted(1410): INFO: Reading authentication keys file.
ossec-remoted(84591) in free(): chunk canary corrupted 0x1141af33a920 0x4@0x4

I think this was introduced in this commit: 0f776e8#diff-a558eb959eb7f66b4929170d83bb2ab8R331 by @reyjrar

Commenting out Line 331 in src/shared/validate_op.c solves that issue for me (but probably introduces others).

free(ip_address);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions