Skip to content
Snippets Groups Projects
Commit e803c382 authored by Saurabh Verma's avatar Saurabh Verma
Browse files

map-agent: fix for ap-metric cmdu.

parent 89df75f9
Branches
No related tags found
No related merge requests found
......@@ -371,6 +371,13 @@ struct cmdu_cstruct *agent_gen_ap_metrics_response(struct agent *a,
}
}
/* if tlv_index is zero,
* means no valid data is found
* free the allocated memory for tlvs
*/
if (tlv_index == 0)
goto error;
return cmdu;
error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment