mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
wscutil: Fix uninitialized warning
==5362== Conditional jump or move depends on uninitialised value(s) ==5362== at 0x419B62: wsc_wfa_ext_iter_next (wscutil.c:52) ==5362== by 0x41B869: wsc_parse_probe_response (wscutil.c:1016) ==5362== by 0x41FD77: scan_results (wsc.c:218) ==5362== by 0x415669: get_scan_done (scan.c:892) ==5362== by 0x432932: destroy_request (genl.c:134) ==5362== by 0x433245: process_unicast (genl.c:394) ==5362== by 0x43361A: received_data (genl.c:506) ==5362== by 0x42FDC2: io_callback (io.c:120) ==5362== by 0x42EABE: l_main_run (main.c:381) ==5362== by 0x402F90: main (main.c:234)
This commit is contained in:
parent
9b0113018f
commit
15ac5c3f38
@ -667,6 +667,9 @@ static int wsc_parse_attrs(const unsigned char *pdu, unsigned int len,
|
||||
bool have_required = true;
|
||||
bool parse_error = false;
|
||||
|
||||
if (ext_iter) /* In case of no WFA extension */
|
||||
wsc_wfa_ext_iter_init(ext_iter, NULL, 0);
|
||||
|
||||
wsc_attr_iter_init(&iter, pdu, len);
|
||||
|
||||
va_start(args, type);
|
||||
|
Loading…
Reference in New Issue
Block a user