]> git.puffer.fish Git - mirror/frr.git/commit
lib: nb: fix bug with oper-state query on list data 18302/head
authorChristian Hopps <chopps@labn.net>
Wed, 26 Feb 2025 13:34:59 +0000 (13:34 +0000)
committerChristian Hopps <chopps@labn.net>
Mon, 3 Mar 2025 15:44:33 +0000 (15:44 +0000)
commita64ecbadcc83fd1040d9c355cb1bc3a9d03a0fc7
tree6f0e9acf848f6faf25259e52829b3c1b6bde00c8
parent37893e4421d900eaaab3891b02b7e6b2080c21c6
lib: nb: fix bug with oper-state query on list data

The capacity of the xpath string was not guaranteed to be sufficient to hold all
the key predicates and so would truncate. Calculate the required space and
guarantee that it is available.

Signed-off-by: Christian Hopps <chopps@labn.net>
lib/northbound_oper.c
lib/yang.c
lib/yang.h