Skip to content

Commit 38add66

Browse files
committed
Back port pull request ossec#1409 from @FreddMadison
Fixes issue ossec#1402 reported by @billy-shears
1 parent c43aa77 commit 38add66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/syscheckd/run_realtime.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ typedef struct _win32rtfim {
220220
OVERLAPPED overlap;
221221

222222
char *dir;
223-
TCHAR buffer[12288];
223+
TCHAR buffer[1228800];
224224
} win32rtfim;
225225

226226
int realtime_win32read(win32rtfim *rtlocald);
@@ -238,6 +238,11 @@ void CALLBACK RTCallBack(DWORD dwerror, DWORD dwBytes, LPOVERLAPPED overlap)
238238

239239
if (dwBytes == 0) {
240240
merror("%s: ERROR: real time call back called, but 0 bytes.", ARGV0);
241+
rtlocald = OSHash_Get(syscheck.realtime->dirtb, "0");
242+
if(rtlocald) {
243+
realtime_win32read(rtlocald);
244+
}
245+
241246
return;
242247
}
243248

0 commit comments

Comments
 (0)