From 88206458cebc47e4dfeacf9b6364e8d5a469969e Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 30 Apr 2012 10:48:57 +0200 Subject: [PATCH] Properly initialize optional subject in PEM builder. --- src/libstrongswan/plugins/pem/pem_builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/plugins/pem/pem_builder.c b/src/libstrongswan/plugins/pem/pem_builder.c index 46a5e7240..d9461bc7f 100644 --- a/src/libstrongswan/plugins/pem/pem_builder.c +++ b/src/libstrongswan/plugins/pem/pem_builder.c @@ -482,7 +482,7 @@ static void *pem_load(credential_type_t type, int subtype, va_list args) char *file = NULL; int fd = -1; chunk_t pem = chunk_empty; - identification_t *subject; + identification_t *subject = NULL; int flags = 0; while (TRUE)