artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad2d38f
)
Fail on invalid address family.
author
tobhe
<tobhe@openbsd.org>
Sat, 20 Feb 2021 22:00:32 +0000
(22:00 +0000)
committer
tobhe
<tobhe@openbsd.org>
Sat, 20 Feb 2021 22:00:32 +0000
(22:00 +0000)
sbin/iked/ikev2.c
patch
|
blob
|
history
diff --git
a/sbin/iked/ikev2.c
b/sbin/iked/ikev2.c
index
5ca6507
..
7ba9b17
100644
(file)
--- a/
sbin/iked/ikev2.c
+++ b/
sbin/iked/ikev2.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ikev2.c,v 1.3
09 2021/02/18 22:00:31
tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.3
10 2021/02/20 22:00:32
tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@
-6905,6
+6905,8
@@
ikev2_cp_setaddr_pool(struct iked *env, struct iked_sa *sa,
memcpy(&in6->sin6_addr.s6_addr[12], &nhost,
sizeof(uint32_t));
break;
+ default:
+ return (-1);
}
if ((addr.addr_af == AF_INET &&
!RB_FIND(iked_addrpool, &env->sc_addrpool, &key)) ||