diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-02-27 13:12:13 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-02-27 13:12:13 +0000 |
commit | a458571f1903e5f772b13da17b87d5825a92a8d2 (patch) | |
tree | 11f7ccfd17b076d3fabbc76cbfa9616e8ba277f4 /sbin/isakmpd/sa.c | |
parent | 029d751cb54abd6e29954490d7a1ab467b7202f5 (diff) |
where possible, use bzero instead of memset
ok cloder henning
Diffstat (limited to 'sbin/isakmpd/sa.c')
-rw-r--r-- | sbin/isakmpd/sa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index d1564709c56..ebc1b2e811e 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sa.c,v 1.89 2005/02/24 16:16:46 markus Exp $ */ +/* $OpenBSD: sa.c,v 1.90 2005/02/27 13:12:12 hshoexer Exp $ */ /* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* @@ -924,7 +924,7 @@ sa_validate_proto_xf(struct proto *match, struct payload *xf, int phase) if (xf_id != GET_ISAKMP_TRANSFORM_ID(pa->attrs)) continue; - memset(avs->checked, 0, sizeof avs->checked); + bzero(avs->checked, sizeof avs->checked); if (attribute_map(pa->attrs + ISAKMP_TRANSFORM_SA_ATTRS_OFF, pa->len - ISAKMP_TRANSFORM_SA_ATTRS_OFF, sa_validate_xf_attrs, avs) == 0) |