diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-03 22:54:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-03 22:54:30 +0000 |
commit | 82ac3e17e37a05343b36630d0d45ea10487bae77 (patch) | |
tree | af839848740435c688eda6a243d7d3986c6bae7e /sbin | |
parent | 11b00f986dcaacd45996270014c3ca1770f9950c (diff) |
zero sockaddr before use
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c index 6d6c268b9a0..8ca004729d0 100644 --- a/sbin/pfctl/pfctl_table.c +++ b/sbin/pfctl/pfctl_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_table.c,v 1.6 2003/01/03 22:50:14 deraadt Exp $ */ +/* $OpenBSD: pfctl_table.c,v 1.7 2003/01/03 22:54:29 deraadt Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -552,6 +552,7 @@ print_addrx(struct pfr_addr *ad, struct pfr_addr *rad, int dns) union sockaddr_union sa; int rv; + bzero(&sa, sizeof sa); sa.sa.sa_len = (ad->pfra_af == AF_INET) ? sizeof(sa.sin) : sizeof(sa.sin6); sa.sa.sa_family = ad->pfra_af; |