From 0715668eea27602d51a906bf15734bf31c9a7f24 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 30 May 2012 07:33:30 +0000
Subject: [PATCH]
---
library/x509parse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/library/x509parse.c b/library/x509parse.c
index ec4fffc93..25df0f7af 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -305,6 +305,8 @@ static int x509_get_name( unsigned char **p,
if( cur->next == NULL )
return( POLARSSL_ERR_X509_MALLOC_FAILED );
+ memset( cur->next, 0, sizeof( x509_name ) );
+
return( x509_get_name( p, end2, cur->next ) );
}