manager: Fix valgrind complaint

==192== Conditional jump or move depends on uninitialised value(s)
==192==    at 0x4531D3: l_queue_find (queue.c:346)
==192==    by 0x42F1F8: manager_config_notify (manager.c:667)
==192==    by 0x45A895: process_multicast (genl.c:970)
==192==    by 0x45A895: received_data (genl.c:1037)
==192==    by 0x4577B2: io_callback (io.c:126)
==192==    by 0x456B0D: l_main_iterate (main.c:473)
==192==    by 0x456BCB: l_main_run (main.c:520)
==192==    by 0x456DDA: l_main_run_with_signal (main.c:642)
==192==    by 0x4034B0: main (main.c:497)
This commit is contained in:
Denis Kenzior 2020-02-04 11:05:10 -06:00
parent fff6c97e99
commit f168fb2e16
1 changed files with 2 additions and 1 deletions

View File

@ -650,7 +650,8 @@ static void manager_config_notify(struct l_genl_msg *msg, void *user_data)
* in that case retry the setup now that an interface, likely
* the initial default one, has been added.
*/
state = manager_find_pending(manager_parse_wiphy_id(msg));
wiphy_id = manager_parse_wiphy_id(msg);
state = manager_find_pending(wiphy_id);
if (state && state->retry) {
state->retry = false;