diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-05-01 08:33:01 -0400 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-05-02 09:23:51 -0400 |
| commit | af785cf2df7f6c7ceacfaac572c298b0f294c588 (patch) | |
| tree | d3b4e52eb9809e01fea761172e15583067f1b6e0 /pimd/pim_cmd_common.c | |
| parent | 8f904fdb45f795d7650a7b641854956010991d68 (diff) | |
bgpd: delay "stream_new" in str2prefix_rd()
`stream_new` in `str2prefix_rd()` can be called after some
checkings are passed, so the last `if (s)` in this fuction will
make sense.
Additionally some changes for `str2prefix_rd()`:
1) Use `RD_BYTES` instead of hard number for `stream_new()`
2) Remove unnecessary `lret` variable
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
0 files changed, 0 insertions, 0 deletions
