File 0012-iniparser-fix-possible-crash-in-dictionary_get.patch of Package openwsman.10653

From 9a6480864aa5b49a9946f6b9f63c34389d326b29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Tue, 25 Aug 2015 16:22:33 +0200
Subject: [PATCH 12/15] iniparser: fix possible crash in dictionary_get()

---
 src/lib/u/iniparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/u/iniparser.c b/src/lib/u/iniparser.c
index a6031e8797a7..1c269583254c 100644
--- a/src/lib/u/iniparser.c
+++ b/src/lib/u/iniparser.c
@@ -285,7 +285,7 @@ static char * dictionary_get(dictionary * d, char * key, char * def)
 
     hash = dictionary_hash(key);
     for (i=0 ; i<d->size ; i++) {
-        if (d->key==NULL)
+        if (d->key[i]==NULL)
             continue ;
         /* Compare hash */
         if (hash==d->hash[i]) {
-- 
2.18.0