Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/dist/ipf/iplang Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/a7f639e7ebc5
branches: netbsd-3
changeset: 577285:a7f639e7ebc5
user: tron <tron%NetBSD.org@localhost>
date: Sat Oct 01 10:36:22 2005 +0000
description:
Pull up following revision(s) (requested by martti in ticket #836):
dist/ipf/iplang/iplang_y.y: revision 1.8
Avoid crash with invalid input.
diffstat:
dist/ipf/iplang/iplang_y.y | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 30c87ed112ae -r a7f639e7ebc5 dist/ipf/iplang/iplang_y.y
--- a/dist/ipf/iplang/iplang_y.y Sat Oct 01 10:33:31 2005 +0000
+++ b/dist/ipf/iplang/iplang_y.y Sat Oct 01 10:36:22 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iplang_y.y,v 1.7 2005/02/08 07:01:53 martti Exp $ */
+/* $NetBSD: iplang_y.y,v 1.7.2.1 2005/10/01 10:36:22 tron Exp $ */
%{
/*
@@ -1290,8 +1290,13 @@
if (ifp->if_fd == -1)
ifp->if_fd = initdevice(ifp->if_name, 5);
gwip = sending.snd_gw;
- if (!gwip.s_addr)
+ if (!gwip.s_addr) {
+ if (!aniphead) {
+ fprintf(stderr, "no destination address defined for sending!\n");
+ return;
+ }
gwip = aniphead->ah_ip->ip_dst;
+ }
(void) send_ip(ifp->if_fd, ifp->if_MTU, (ip_t *)ipbuffer, gwip, 2);
}
Home |
Main Index |
Thread Index |
Old Index