Properly initialize optional subject in PEM builder.
authorTobias Brunner <tobias@strongswan.org>
Mon, 30 Apr 2012 08:48:57 +0000 (10:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 30 Apr 2012 08:48:57 +0000 (10:48 +0200)
src/libstrongswan/plugins/pem/pem_builder.c

index 46a5e72..d9461bc 100644 (file)
@@ -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;
        char *file = NULL;
        int fd = -1;
        chunk_t pem = chunk_empty;
-       identification_t *subject;
+       identification_t *subject = NULL;
        int flags = 0;
 
        while (TRUE)
        int flags = 0;
 
        while (TRUE)