summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-08-26 02:09:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-08-26 02:09:30 +0000
commitddbda3c77c840919d84803549ee8338034c0bed9 (patch)
tree4d787c31a4fe89a3326bc3ba3723fb7f1ba431ae
parentdeb1fdd1941669f5207794137ccd1c5386679e1a (diff)
use 0xffff not 0xfffff for a 16 bit port constant
ok mikeb@
-rw-r--r--sbin/iked/pfkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/pfkey.c b/sbin/iked/pfkey.c
index 4566acd2733..413cdd3dbbd 100644
--- a/sbin/iked/pfkey.c
+++ b/sbin/iked/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.44 2015/08/21 11:59:28 reyk Exp $ */
+/* $OpenBSD: pfkey.c,v 1.45 2015/08/26 02:09:29 jsg Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -196,7 +196,7 @@ pfkey_flow(int sd, uint8_t satype, uint8_t action, struct iked_flow *flow)
memcpy(&smask, &flow->flow_src.addr, sizeof(smask));
socket_af((struct sockaddr *)&ssrc, flow->flow_src.addr_port);
socket_af((struct sockaddr *)&smask, flow->flow_src.addr_port ?
- 0xfffff : 0);
+ 0xffff : 0);
switch (flow->flow_src.addr_af) {
case AF_INET: