We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870d762 commit d0447a1Copy full SHA for d0447a1
audisp/plugins/af_unix/audisp-af_unix.c
@@ -397,7 +397,9 @@ void read_audit_record(int ifd)
397
stop = 1;
398
return;
399
}
400
- if (peek[0] == 0 || peek[0] == 1)
+ // If its string, there will be an ascii letter in the first
401
+ // character. If it's binary, it will be a 1 (0 is ancient)
402
+ if (peek[0] == 1 || peek[0] == 0)
403
inbound_protocol = F_BINARY;
404
else
405
inbound_protocol = F_STRING;
0 commit comments