novi upstream verzije 2.8.3
[ossec-hids.git] / src / syscheckd / run_realtime.c
index 839e5b8..20d8fb2 100755 (executable)
@@ -74,9 +74,12 @@ int realtime_checksumfile(char *file_name)
 
          if(strcmp(c_sum, buf+6) != 0)
          {
-             char *fullalert = NULL;
              char alert_msg[OS_MAXSTR +1];
              alert_msg[OS_MAXSTR] = '\0';
+             #ifdef WIN32
+             snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
+             #else
+             char *fullalert = NULL;
              if(buf[5] == 's' || buf[5] == 'n')
              {
                  fullalert = seechanges_addfile(file_name);
@@ -95,6 +98,7 @@ int realtime_checksumfile(char *file_name)
              {
                  snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
              }
+             #endif
              send_syscheck_msg(alert_msg);
 
              return(1);