From: Tobias Brunner Date: Mon, 30 Apr 2012 08:48:57 +0000 (+0200) Subject: Properly initialize optional subject in PEM builder. X-Git-Tag: 4.6.3~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88206458cebc47e4dfeacf9b6364e8d5a469969e;p=thirdparty%2Fstrongswan.git Properly initialize optional subject in PEM builder. --- diff --git a/src/libstrongswan/plugins/pem/pem_builder.c b/src/libstrongswan/plugins/pem/pem_builder.c index 46a5e72400..d9461bc7fa 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)