]> granicus.if.org Git - libnl/commit
cache: only continue iterating over co_groups if it is available
authorThomas Graf <tgraf@suug.ch>
Mon, 26 Nov 2012 10:50:56 +0000 (11:50 +0100)
committerThomas Graf <tgraf@suug.ch>
Mon, 26 Nov 2012 10:50:56 +0000 (11:50 +0100)
commit4149154c226a47f67f5ad32b5532831534a755e9
treecc1fa9ffa210bb7907503e5660d5e1135197a7c8
parent05a6723eb5d63d9d1a3eb025b8f20dd6af2bde35
cache: only continue iterating over co_groups if it is available

A co_groups == NULL must enter the loop to trigger the initial
fill of the cache but may never bump the grp pointer as doing
so prevents the loop from being escaped correctly.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/cache.c