File 0006-iniparser-fix-possible-crash-in-dictionary_get.patch of Package openwsman.1064
From b5052eedc8d01aa0d0d9b9546c8e408eeb8decf1 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 6/6] 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.1.4