diff options
| author | Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org> | 2021-01-29 19:26:49 +0100 |
|---|---|---|
| committer | Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org> | 2021-01-29 19:39:24 +0100 |
| commit | 8e04b88b8db4b6c154686c0d43ca192f041072b8 (patch) | |
| tree | bd67b6e142d1a8ef3958e5a5eee9f5771786a8ec /pceplib/test/pcep_utils_queue_test.c | |
| parent | ecf497baeda77bfd040818c7bd2ad412cac76d66 (diff) | |
ospf6d: Fix LSA formatting inconsistent retvals
Make return values for lh_get_prefix_str LSA handlers consistent, i.e.
return NULL in case of error without having written to the passed buffer
and non-NULL (address of buffer) if a string was written to the buffer.
Previously, it was possible in certain cases (bogus LSAs) to not initialize
(and 0-terminate) the buffer but still return non-NULL, causing the caller
to print random junk.
Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Diffstat (limited to 'pceplib/test/pcep_utils_queue_test.c')
0 files changed, 0 insertions, 0 deletions
