summaryrefslogtreecommitdiffstats
path: root/sys/net/pfkeyv2_parsemessage.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2012-03-28 19:43:21 +0000
committerclaudio <claudio@openbsd.org>2012-03-28 19:43:21 +0000
commite47fff728d006e821e6a339d15cf4efc284795b3 (patch)
tree2eb003e3164945b6bbc2b8ef0007bd0db93ec03c /sys/net/pfkeyv2_parsemessage.c
parentAnother pid that needs to be the process pid and not the thread one. (diff)
downloadwireguard-openbsd-e47fff728d006e821e6a339d15cf4efc284795b3.tar.xz
wireguard-openbsd-e47fff728d006e821e6a339d15cf4efc284795b3.zip
pfkey needs some p_p->ps_pid too. OK deraadt@ guenther@
Diffstat (limited to 'sys/net/pfkeyv2_parsemessage.c')
-rw-r--r--sys/net/pfkeyv2_parsemessage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2_parsemessage.c b/sys/net/pfkeyv2_parsemessage.c
index 68ac730b3fb..b85eb919eac 100644
--- a/sys/net/pfkeyv2_parsemessage.c
+++ b/sys/net/pfkeyv2_parsemessage.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.44 2010/07/01 02:09:45 reyk Exp $ */
+/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.45 2012/03/28 19:43:21 claudio Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -323,7 +323,7 @@ pfkeyv2_parsemessage(void *p, int len, void **headers)
return (EINVAL);
}
- if (sadb_msg->sadb_msg_pid != curproc->p_pid) {
+ if (sadb_msg->sadb_msg_pid != curproc->p_p->ps_pid) {
DPRINTF(("pfkeyv2_parsemessage: bad PID value\n"));
return (EINVAL);
}