Skip to content

Commit f0288ea

Browse files
committed
In af_unix plugin, if no client - drop event
1 parent 2e717ee commit f0288ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

audisp/plugins/af_unix/audisp-af_unix.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ void read_audit_record(int ifd)
416416
return;
417417
}
418418

419-
if (!stop) {
419+
if (client && !stop) {
420420
if (format == F_STRING) {
421421
char *str = NULL;
422422
int str_len = 0;
@@ -458,9 +458,7 @@ void read_audit_record(int ifd)
458458
len = auplugin_fgets(rx_buf,
459459
MAX_AUDIT_EVENT_FRAME_SIZE + 1, ifd);
460460
if (len > 0) {
461-
if (inbound_protocol == -1)
462-
inbound_protocol = F_STRING;
463-
if (!stop) {
461+
if (client && !stop) {
464462
if (format == F_STRING) {
465463
if (q_append(queue, rx_buf,
466464
len) != 0)

0 commit comments

Comments
 (0)