mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-31 06:56:13 +00:00
ospf6d: Don't allocate json memory in non-json path
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
1cc380679e
commit
21c6569d6f
@ -1242,7 +1242,8 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp,
|
||||
}
|
||||
}
|
||||
|
||||
json_auth = json_object_new_object();
|
||||
if (use_json)
|
||||
json_auth = json_object_new_object();
|
||||
if (oi->at_data.flags != 0) {
|
||||
if (use_json) {
|
||||
if (CHECK_FLAG(oi->at_data.flags,
|
||||
|
Loading…
Reference in New Issue
Block a user