summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2005-05-24 03:15:11 +0000
committerho <ho@openbsd.org>2005-05-24 03:15:11 +0000
commitebad4fe6015e76fc0f633bc8deb61fe0bdd9eeda (patch)
treef26f31a564008dc48789b598eb0d28785200a3a7
parentMake sure all fields in the SADB_DUMP header are zeroed properly. hshoexer@ ok. (diff)
downloadwireguard-openbsd-ebad4fe6015e76fc0f633bc8deb61fe0bdd9eeda.tar.xz
wireguard-openbsd-ebad4fe6015e76fc0f633bc8deb61fe0bdd9eeda.zip
Now that all "other" SADB_DUMP fields are zero, we don't have fix it here.
-rw-r--r--usr.sbin/sasyncd/pfkey.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/sasyncd/pfkey.c b/usr.sbin/sasyncd/pfkey.c
index 3e9891987d5..fd4ebddc77d 100644
--- a/usr.sbin/sasyncd/pfkey.c
+++ b/usr.sbin/sasyncd/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.5 2005/05/24 02:49:32 ho Exp $ */
+/* $OpenBSD: pfkey.c,v 1.6 2005/05/24 03:15:11 ho Exp $ */
/*
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
@@ -343,8 +343,6 @@ pfkey_snapshot(void *v)
/* Tweak and send this SA to the peer. */
m->sadb_msg_type = SADB_ADD;
- m->sadb_msg_errno = 0;
- m->sadb_msg_reserved = 0; /* XXX DUMP msg has data here. */
/* Allocate a buffer for the msg, net_queue() will free it. */
sendbuf = (u_int8_t *)malloc(m->sadb_msg_len * CHUNK);