mond.agents = NULL;
mond.smtpserver = NULL;
mond.emailfrom = NULL;
+ mond.emailidsname = NULL;
c = 0;
OS_XML xml;
char *tmpsmtp;
- char *(xml_smtp[])={"ossec_config", "global", "smtp_server", NULL};
- char *(xml_from[])={"ossec_config", "global", "email_from", NULL};
+ const char *(xml_smtp[])={"ossec_config", "global", "smtp_server", NULL};
+ const char *(xml_from[])={"ossec_config", "global", "email_from", NULL};
+ const char *(xml_idsname[])={"ossec_config", "global", "email_idsname", NULL};
if(OS_ReadXML(cfg, &xml) < 0)
{
tmpsmtp = OS_GetOneContentforElement(&xml,xml_smtp);
mond.emailfrom = OS_GetOneContentforElement(&xml,xml_from);
+ mond.emailidsname = OS_GetOneContentforElement(&xml,xml_idsname);
if(tmpsmtp && mond.emailfrom)
{
}
- /* Privilege separation */
+ /* Privilege separation */
if(Privsep_SetGroup(gid) < 0)
ErrorExit(SETGID_ERROR,ARGV0,group);
verbose(STARTUP_MSG, ARGV0, (int)getpid());
- /* the real daemon now */
+ /* the real daemon now */
Monitord();
exit(0);
}