mirror of
https://github.com/opnsense/src.git
synced 2026-06-15 03:31:11 -04:00
AddLink() fails when memory allocation fails or no free port is available; both are error conditions. However, functions such as FindUdpTcpIn() were converting such failures to PKT_ALIAS_IGNORED, which effectively means, "pass the packet without translation," which isn't what we want. Fix the problem by making sure that AddLink() errors are converted to PKT_ALIAS_ERROR where appropriate. The diff is a bit large but is mostly mechanical: functions like TcpAliasOut() are converted to return a result code, and an additional out-parameter is added to return the alias_link pointer. Reported by: Yuxiang Yang <yangyx22@mails.tsinghua.edu.cn> Tested by: Yuxiang Yang <yangyx22@mails.tsinghua.edu.cn> MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D47778 |
||
|---|---|---|
| .. | ||
| alias.c | ||
| alias.h | ||
| alias_db.c | ||
| alias_db.h | ||
| alias_dummy.c | ||
| alias_ftp.c | ||
| alias_irc.c | ||
| alias_local.h | ||
| alias_mod.c | ||
| alias_mod.h | ||
| alias_nbt.c | ||
| alias_pptp.c | ||
| alias_proxy.c | ||
| alias_sctp.c | ||
| alias_sctp.h | ||
| alias_skinny.c | ||
| alias_smedia.c | ||
| alias_util.c | ||
| HISTORY | ||
| libalias.3 | ||