summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-06-05 19:19:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-06-05 19:19:11 +0000
commit76a99d8656f7a5319566c126a90636ccb25c600a (patch)
tree52e3241806c05e04bab2147fde03ff7e484dc65a /usr.sbin/ldpd
parentaec90f7c437b0b697c620fc6e837ce64b35de17c (diff)
Fix build on vax
Diffstat (limited to 'usr.sbin/ldpd')
-rw-r--r--usr.sbin/ldpd/packet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index f1e90776559..39480b8c8b3 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.27 2013/06/04 02:34:48 claudio Exp $ */
+/* $OpenBSD: packet.c,v 1.28 2013/06/05 19:19:10 miod Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -389,8 +389,10 @@ session_read(int fd, short event, void *arg)
len -= LDP_HDR_SIZE;
while (len >= LDP_MSG_LEN) {
+ u_int16_t type;
+
ldp_msg = (struct ldp_msg *)pdu;
- u_int16_t type = ntohs(ldp_msg->type);
+ type = ntohs(ldp_msg->type);
pdu_len = ntohs(ldp_msg->length) + TLV_HDR_LEN;
if (pdu_len > len ||