commit | 52c0ecb9c9c569bd70d32b776f5adbade542c5cd | [log] [tgz] |
---|---|---|
author | Klaus Kämpf <kkaempf@suse.de> | Tue Aug 25 16:22:33 2015 +0200 |
committer | Klaus Kämpf <kkaempf@suse.de> | Thu Aug 27 12:03:58 2015 +0200 |
tree | d248dff305345667756ce128175f0c193d6f188c | |
parent | dbb19e4618275fe70a2c4bc3d77569646cc0310f [diff] |
iniparser: fix possible crash in dictionary_get()
diff --git a/src/lib/u/iniparser.c b/src/lib/u/iniparser.c index 75150c2..7d84084 100644 --- a/src/lib/u/iniparser.c +++ b/src/lib/u/iniparser.c
@@ -289,7 +289,7 @@ 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]) {