diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-14 02:25:32 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-14 02:25:32 +0000 |
commit | 14901c04b79cb17c3c64e0f387e5bf232548c4f1 (patch) | |
tree | 944aea4f0c97efa78bd8751707f0852d6ebb930b /sys/netinet/libalias/alias_local.h | |
parent | 95f78d45621446ffbafb1a53dc3294659c10152a (diff) | |
download | FreeBSD-src-14901c04b79cb17c3c64e0f387e5bf232548c4f1.zip FreeBSD-src-14901c04b79cb17c3c64e0f387e5bf232548c4f1.tar.gz |
Reviewed by: freebsd-current
Add bounds checking to netbios NS packet resolving code. This should
prevent natd from crashing on badly formed netbios packets (as might be
heard when the machine is sitting on a cable modem or certain DSL
networks), and also closes potential security holes that might have
exploited the lack of bounds checking in the previous version of the
code.
Diffstat (limited to 'sys/netinet/libalias/alias_local.h')
-rw-r--r-- | sys/netinet/libalias/alias_local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/libalias/alias_local.h b/sys/netinet/libalias/alias_local.h index 0e94a64..3846281 100644 --- a/sys/netinet/libalias/alias_local.h +++ b/sys/netinet/libalias/alias_local.h @@ -90,8 +90,8 @@ void HouseKeeping(void); /*lint -save -library Suppress flexelint warnings */ void AliasHandleFtpOut(struct ip *, struct alias_link *, int); void AliasHandleIrcOut(struct ip *pip, struct alias_link *link, int maxsize ); -void AliasHandleUdpNbt(struct ip *, struct alias_link *, struct in_addr *, u_short); -void AliasHandleUdpNbtNS(struct ip *, struct alias_link *, struct in_addr *, u_short *, struct in_addr *, u_short *); +int AliasHandleUdpNbt(struct ip *, struct alias_link *, struct in_addr *, u_short); +int AliasHandleUdpNbtNS(struct ip *, struct alias_link *, struct in_addr *, u_short *, struct in_addr *, u_short *); void AliasHandleCUSeeMeOut(struct ip *, struct alias_link *); void AliasHandleCUSeeMeIn(struct ip *, struct in_addr); |