summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt_read.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-05-14 16:22:31 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-05-14 16:22:31 +0200
commitb43d5592dd158d7ea24ae08b915deafc48c66300 (patch)
treec9e0a9d638cd18eb60e9a87c254a8787520ddbe6 /runtime/librsgt_read.c
parentf7ea1605254d88d5f56d4f0ba66898da0d6e6873 (diff)
downloadrsyslog-b43d5592dd158d7ea24ae08b915deafc48c66300.tar.gz
rsyslog-b43d5592dd158d7ea24ae08b915deafc48c66300.tar.bz2
rsyslog-b43d5592dd158d7ea24ae08b915deafc48c66300.zip
bugfix: .logsig files had tlv16 indicator bit at wrong offset
Diffstat (limited to 'runtime/librsgt_read.c')
-rw-r--r--runtime/librsgt_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/librsgt_read.c b/runtime/librsgt_read.c
index 25c0db4d..a6e33160 100644
--- a/runtime/librsgt_read.c
+++ b/runtime/librsgt_read.c
@@ -249,7 +249,7 @@ rsgt_tlvRecRead(FILE *fp, tlvrecord_t *rec)
NEXTC;
rec->hdr[0] = c;
rec->tlvtype = c & 0x1f;
- if(c & 0x20) { /* tlv16? */
+ if(c & 0x80) { /* tlv16? */
rec->lenHdr = 4;
NEXTC;
rec->hdr[1] = c;
@@ -290,7 +290,7 @@ rsgt_tlvDecodeSUBREC(tlvrecord_t *rec, uint16_t *stridx, tlvrecord_t *newrec)
c = rec->data[(*stridx)++];
newrec->hdr[0] = c;
newrec->tlvtype = c & 0x1f;
- if(c & 0x20) { /* tlv16? */
+ if(c & 0x80) { /* tlv16? */
newrec->lenHdr = 4;
if(rec->tlvlen == *stridx) {r=RSGTE_LEN; goto done;}
c = rec->data[(*stridx)++];