freebsd-skq/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
alias_pptp.c
alias_proxy.c
alias_skinny.c
alias_smedia.c
alias_util.c
alias.c
alias.h
HISTORY
libalias.3
Makefile