aboutgitcodebugslistschat
path: root/doc
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-04-10 11:02:57 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-04-15 23:31:51 +0200
commitb68cac078c16486a2a1c863d00187a204037a7b7 (patch)
tree822fbe2655d53ea51658289610a80f3a5bc70cd5 /doc
parent2bffb631d31e0ea08dd8c850038d1f3b099c1b44 (diff)
downloadpasst-b68cac078c16486a2a1c863d00187a204037a7b7.tar
passt-b68cac078c16486a2a1c863d00187a204037a7b7.tar.gz
passt-b68cac078c16486a2a1c863d00187a204037a7b7.tar.bz2
passt-b68cac078c16486a2a1c863d00187a204037a7b7.tar.lz
passt-b68cac078c16486a2a1c863d00187a204037a7b7.tar.xz
passt-b68cac078c16486a2a1c863d00187a204037a7b7.tar.zst
passt-b68cac078c16486a2a1c863d00187a204037a7b7.zip
fwd: Improve error handling in fwd_rule_add()
fwd_rule_add() sanity checks the given rule, however all errors are fatal: either they're assert()s in the case of things that callers should have already verified, or die()s if we run out of space for the new rule. This won't suffice any more when we allow rule updates from a configuration client. We don't want to trust the input we get from the client any more than we have to. Replace the assert()s and die()s with a return value. Also include warn()s so that the user gets a more specific idea of the problem in the logs or stderr. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions