summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2016-09-03 20:35:08 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2016-09-03 20:35:08 +0000
commit24e7e04223d2d85e9edec39564ba2d28f631ade8 (patch)
tree5517b757ed5541d78d7f00fc7a52ed7d93dbf7cf /sys
parentdbeeac81d96d77f2fba7ad63cb38ecb5897ffecd (diff)
we really should ntohl fields coming in from the network
Diffstat (limited to 'sys')
-rw-r--r--sys/net/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c
index 8d87f664671..8b3755653e0 100644
--- a/sys/net/bfd.c
+++ b/sys/net/bfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bfd.c,v 1.11 2016/09/03 20:02:49 phessler Exp $ */
+/* $OpenBSD: bfd.c,v 1.12 2016/09/03 20:35:07 phessler Exp $ */
/*
* Copyright (c) 2016 Peter Hessler <phessler@openbsd.org>
@@ -751,7 +751,7 @@ printf("%s: peer your discr 0x%x != local 0x%x\n",
sc->sc_peer->RemoteSessionState = state;
sc->error = 0;
- sc->sc_peer->RemoteMinRxInterval = peer->bfd_required_min_rx_interval;
+ sc->sc_peer->RemoteMinRxInterval = ntohl(peer->bfd_required_min_rx_interval);
if (sc->sc_peer->RemoteMinRxInterval < BFD_MINIMUM)
sc->sc_peer->RemoteMinRxInterval = BFD_MINIMUM;