diff options
author | 2019-04-18 22:29:41 +0000 | |
---|---|---|
committer | 2019-04-18 22:29:41 +0000 | |
commit | 898866c293b8a3d1c25a9654c74fcab7bb725e3b (patch) | |
tree | 78266c3554c94a0a760cf2c5ff8ad1deb621be3f /lib/libc/stdlib/reallocarray.c | |
parent | Fix table definition parsing as unprivileged user (diff) | |
download | wireguard-openbsd-898866c293b8a3d1c25a9654c74fcab7bb725e3b.tar.xz wireguard-openbsd-898866c293b8a3d1c25a9654c74fcab7bb725e3b.zip |
Always check for namespace collisions on table commands
`-t table -T add|replace ...' would only check for duplicate tables in case
addresses where actually to the table.
Instead of using a positive number of added addresses as prove for
successful table operations, rely on the fact that CREATE_TABLE() is
guaranteed to be called only if pf(4) can be accessed, that is
warn_duplicate_tables() will return.
This improves duplicate detection rate as warnings are now also emitted
even when table commands eventually leave tables unchanged.
OK benno sashan
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions