diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-19 01:47:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-19 01:47:43 +0000 |
commit | 6f5c85173b25f471a24e64802bdbe8ca97254202 (patch) | |
tree | 39d027126b7f394e5276e6f43628659bedc74aa3 | |
parent | d3d4a61f892a1f44ae7f14e9b61881f2f1007776 (diff) |
Fix initialisation of baddynamicports.udp, busted since 1997, wow.
found by leonardo@iken.com.br
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 05bb18bae6e..3fbafd17cf3 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.131 2005/08/11 12:55:31 mpf Exp $ */ +/* $OpenBSD: ip_input.c,v 1.132 2005/09/19 01:47:42 deraadt Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -226,7 +226,7 @@ ip_init() for (i = 0; defbaddynamicports_tcp[i] != 0; i++) DP_SET(baddynamicports.tcp, defbaddynamicports_tcp[i]); for (i = 0; defbaddynamicports_udp[i] != 0; i++) - DP_SET(baddynamicports.udp, defbaddynamicports_tcp[i]); + DP_SET(baddynamicports.udp, defbaddynamicports_udp[i]); strlcpy(ipsec_def_enc, IPSEC_DEFAULT_DEF_ENC, sizeof(ipsec_def_enc)); strlcpy(ipsec_def_auth, IPSEC_DEFAULT_DEF_AUTH, sizeof(ipsec_def_auth)); |