Patch from <firstname.lastname@example.org> fixing seg failt.
I encountered a segmentation fault in syscheck_control. After investigating I found the problem was the use of uninitialized pointers in src/shared/read-agents.c in the case of "restored" files (line 65). The pointers are used in the code starting on line 145.
I also discussed it last week on IRC with ddpbsd.
I propose the attached patch. Please review as I'm not familiar with the ossec code.