|
@@ -691,7 +691,7 @@ static void anqp_add_osu_provider(struct wpabuf *buf,
|
|
|
|
|
|
/* OSU Method List */
|
|
/* OSU Method List */
|
|
count = wpabuf_put(buf, 1);
|
|
count = wpabuf_put(buf, 1);
|
|
- for (i = 0; p->method_list[i] >= 0; i++)
|
|
|
|
|
|
+ for (i = 0; p->method_list && p->method_list[i] >= 0; i++)
|
|
wpabuf_put_u8(buf, p->method_list[i]);
|
|
wpabuf_put_u8(buf, p->method_list[i]);
|
|
*count = i;
|
|
*count = i;
|
|
|
|
|