diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-03-10 10:19:23 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-03-10 10:19:23 +0000 |
commit | a8a693bb1aa15004ba89731e3d844beb2f6fac13 (patch) | |
tree | 438ea52019cb1a506d881eb0045e2ac42a8543a6 | |
parent | 83a9eae8d0a66eafc7fa8564a1e03f857336da44 (diff) |
Make sure 'pooladdr' is zero initialized.
ok markus@
-rw-r--r-- | sbin/iked/ikev2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 7fba787038e..60f7f971ea9 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.193 2020/03/10 09:57:49 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.194 2020/03/10 10:19:22 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -1487,6 +1487,8 @@ ikev2_add_ts_payload(struct ibuf *buf, unsigned int type, struct iked_sa *sa) struct iked_tss *tss; struct iked_ts *tsi; + bzero(&pooladdr, sizeof(pooladdr)); + if ((tsp = ibuf_advance(buf, sizeof(*tsp))) == NULL) return (-1); tsp->tsp_count = pol->pol_nflows; |