summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-04-23 18:47:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-04-23 18:47:58 +0200
commit55093592b4f5dd3dd9d96b986c55e4974a7af1c6 (patch)
tree15394b24fe7e6ee260489feeb66344fa76f89905 /runtime/librsgt.c
parentd2667671add2d9b97212ec8c3121e5287fdcaf16 (diff)
downloadrsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.tar.gz
rsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.tar.bz2
rsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.zip
bugfix: potential segfault in guardtime signature provider
it could segfault if an error was reported by the GuardTime API, because an invalid free could happen then
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 afafe2f2..2127e306 100644
--- a/runtime/librsgt.c
+++ b/runtime/librsgt.c
@@ -775,7 +775,7 @@ done:
static int
timestampIt(gtfile gf, GTDataHash *hash)
{
- unsigned char *der;
+ unsigned char *der = NULL;
size_t lenDer;
int r = GT_OK;
int ret = 0;