diff options
| author | Ilia Kashintsev <ilia.kashintsev@gmail.com> | 2025-12-25 15:32:34 +0300 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2026-01-01 11:33:53 +0100 |
| commit | a6f972845fcf3ef13a3481af1a8f5ca15ae96cfc (patch) | |
| tree | af2ab1605768142907877c55016340017b036ab7 /useful_functions.c | |
| parent | a7202b6caf9e96755152699c134b1a0ccc37c187 (diff) | |
ebtables: fix null dereference in ebtables-restore
Use strchrnul() instead of strchr() when trimming the trailing newline.
This avoids NULL pointer dereference when newline is not present in the
input.
Signed-off-by: Ilia Kashintsev <ilia.kashintsev@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'useful_functions.c')
0 files changed, 0 insertions, 0 deletions
