summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-23 21:22:11 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-23 22:08:41 +0100
commitf8eca04841725180fc78a1dd8bbf6435e02d554a (patch)
tree96971f93edfd5e07be0d46db3992588e17fd6b5a /src/dbi.h
parent2140012535797296ae170c1d0595eacf126bc50d (diff)
rest: fix WoL handling
Valgrind reports a memleak because og_cmd_wol() overrides params->ips_array, then it releases params->ips_array but og_cmd_free() already does this. Use a new_params structure to store the IPs that has been filtered through the database query and check that buffer overrun does not happen. Fixes: e4cb91b5f660 ("#990 wol: migrate mac and netmask query to ogServer")
Diffstat (limited to 'src/dbi.h')
0 files changed, 0 insertions, 0 deletions