freebsd-dev/lib/libalias
Poul-Henning Kamp a8bc22b47a natd core dumps when -reverse switch is used because of a bug in
libalias.

In /usr/src/lib/libalias/alias.c, the functions LibAliasIn and
LibAliasOutTry call the legacy PacketAliasIn/PacketAliasOut instead
of LibAliasIn/LibAliasOut when the PKT_ALIAS_REVERSE option is set.
In this case, the context variable "la" gets lost because the legacy
compatibility routines expect "la" to be global.  This was obviously
an oversight when rewriting the PacketAlias* functions to the
LibAlias* functions.

The fix (as shown in the patch below) is to remove the legacy
subroutine calls and replace with the new ones using the "la" struct
as the first arg.

Submitted by:	Gil Kloepfer <fgil@kloepfer.org>
Confirmed by:	<nicolai@catpipe.net>
PR:		76839
MFC after:	3 days
2005-04-05 13:04:35 +00:00
..
alias_cuseeme.c
alias_db.c
alias_ftp.c
alias_irc.c
alias_local.h
alias_nbt.c
alias_old.c include "alias.h", not <alias.h> 2005-01-10 10:54:06 +00:00
alias_pptp.c
alias_proxy.c
alias_skinny.c Fix a problem in the Skinny ALG where a specially crafted packet could cause 2005-03-03 03:06:37 +00:00
alias_smedia.c
alias_util.c
alias.c natd core dumps when -reverse switch is used because of a bug in 2005-04-05 13:04:35 +00:00
alias.h
HISTORY
libalias.3 Sort sections. 2005-01-20 09:17:07 +00:00
Makefile