diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-10-12 01:15:46 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-10-12 03:41:17 +0200 |
commit | 46fcb2df90409e401223d29c6162753bf73fca64 (patch) | |
tree | 324c50ed09846248ec67f723c15a1100222c9a1d /zebra/zserv.h | |
parent | bfdd: don't allow link-local without interface (diff) | |
download | frr-46fcb2df90409e401223d29c6162753bf73fca64.tar.xz frr-46fcb2df90409e401223d29c6162753bf73fca64.zip |
lib: use `prefix` for yang get prefix wrapper
This change fixes a static analyzer warning and should also make us
safer when using this function. At the moment the code that triggered
the warning is the only one that uses this function.
Passing anything other than `struct prefix` to `str2prefix` function is
dangerous, because the structure might be smaller than expected and we
might have an buffer overflow.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'zebra/zserv.h')
0 files changed, 0 insertions, 0 deletions