commit | b18c565ecaf6d71e7b6bf1215cceb6826733c818 | [log] [tgz] |
---|---|---|
author | Pradeep Reddy POTTETI <c_ppotte@qti.qualcomm.com> | Mon Jan 18 12:45:37 2016 +0530 |
committer | Jouni Malinen <jouni@qca.qualcomm.com> | Mon Feb 01 20:19:49 2016 +0200 |
tree | c21d3bf65f672a72ea7b325fc1b83edc011dd7e8 | |
parent | 7959404989bf030351e7dd6cf3f61476a90efb85 [diff] |
sta_ip_config: Fix potential NULL pointer dereference error "ip" and "mask" values fetched by cmd_sta_set_ip_config() can be NULL. This could lead to NULL pointer dereference in case of IPv6. The original IPv4-only implementation used to check the values before proceeding, but that was broken when IPv6 support was added. Fix this by restoring NULL checks before proceeding for all cases. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>