aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-04-30 10:48:57 +0200
committerTobias Brunner <tobias@strongswan.org>2012-04-30 10:48:57 +0200
commit88206458cebc47e4dfeacf9b6364e8d5a469969e (patch)
treefd7a66936ee28bc4ec80a4788f971c041a306137 /src
parent00d79edc209c1f551fe1bcc04f60e43ecad5ae19 (diff)
downloadstrongswan-88206458cebc47e4dfeacf9b6364e8d5a469969e.tar.bz2
strongswan-88206458cebc47e4dfeacf9b6364e8d5a469969e.tar.xz
Properly initialize optional subject in PEM builder.
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/pem/pem_builder.c2
1 files changed, 1 insertions, 1 deletions
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)