Blame SOURCES/openssl-1.0.0e-chil-fixes.patch

a5ef24
diff -up openssl-1.0.0e/engines/e_chil.c.chil openssl-1.0.0e/engines/e_chil.c
a5ef24
--- openssl-1.0.0e/engines/e_chil.c.chil	2010-06-15 19:25:12.000000000 +0200
a5ef24
+++ openssl-1.0.0e/engines/e_chil.c	2011-09-21 17:32:03.000000000 +0200
a5ef24
@@ -1261,6 +1261,11 @@ static int hwcrhk_insert_card(const char
a5ef24
         UI *ui;
a5ef24
 	void *callback_data = NULL;
a5ef24
         UI_METHOD *ui_method = NULL;
a5ef24
+	/* Despite what the documentation says prompt_info can be
a5ef24
+	 * an empty string.
a5ef24
+	 */
a5ef24
+	if (prompt_info && !*prompt_info)
a5ef24
+		prompt_info = NULL;
a5ef24
 
a5ef24
         if (cactx)
a5ef24
                 {
a5ef24
@@ -1287,7 +1292,7 @@ static int hwcrhk_insert_card(const char
a5ef24
 
a5ef24
 	if (ui)
a5ef24
 		{
a5ef24
-		char answer;
a5ef24
+		char answer = '\0';
a5ef24
 		char buf[BUFSIZ];
a5ef24
 		/* Despite what the documentation says wrong_info can be
a5ef24
 	 	 * an empty string.