gluon-packages/net/respondd-module-airtime/src
David Bauer 825aa0c093 respondd-module-airtime: fix null pointer deref
In case a radio exists, but is disabled, the survey request will return
successfully, but without data.

The code could not handle this case, as the newest_element_index would
be negative in this case, leading to json_object_array_get_idx returning
a null-pointer.

Check for a null pointer prior adding the PHY index, avoiding a
null-pointer dereference.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-07-03 02:31:05 +02:00
..
Makefile respondd-module-airtime: Move common netlink query code to separate function 2017-02-08 23:11:57 +01:00
airtime.c respondd-module-airtime: Fix reported noise result (#190) 2018-07-08 20:10:17 +02:00
airtime.h respondd-module-airtime: Make returned object more dynamic 2017-02-08 23:11:57 +01:00
ifaces.c respondd-module-airtime: Add allocation checks to get_ifaces() 2017-02-08 23:11:57 +01:00
ifaces.h Add package respondd-module-airtime (#156) 2016-12-22 23:40:00 +01:00
netlink.c respondd-module-airtime: Give more helpful error messages 2017-04-30 18:03:40 +02:00
netlink.h respondd-module-airtime: Move common netlink query code to separate function 2017-02-08 23:11:57 +01:00
respondd.c respondd-module-airtime: fix null pointer deref 2021-07-03 02:31:05 +02:00