Skip to content

Commit 0b27bb4

Browse files
committed
Check return of audit_strsplit
This fixes Issue #440
1 parent 2b9207b commit 0b27bb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ausearch-lol.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ static int extract_timestamp(const char *b, event *e)
191191
if (*ptr == 'n') {
192192
tnode = ptr+5;
193193
ptr = audit_strsplit(NULL);
194+
if (ptr == NULL)
195+
return 0;
194196
} else
195197
tnode = NULL;
196198

0 commit comments

Comments
 (0)