summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.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.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.c')
-rw-r--r--runtime/librsgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c
index ae0b0df6..85fc7742 100644
--- a/runtime/librsgt.c
+++ b/runtime/librsgt.c
@@ -296,7 +296,7 @@ tlv16Write(gtfile gf, int flags, int tlvtype, uint16_t len)
{
uint16_t typ;
int r;
- typ = ((flags|1) << 13)|tlvtype;
+ typ = ((flags|1) << 15)|tlvtype;
r = tlvbufAddOctet(gf, typ >> 8);
if(r != 0) goto done;
r = tlvbufAddOctet(gf, typ & 0xff);