summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-06-11 02:03:37 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-06-11 02:03:37 +0000
commit3782aa54d427cf1ac75983fa61359f0d94feb35f (patch)
tree19d5aa9b0cb7d4fead03663d63194fa932a88ea0 /usr.sbin/ldpd
parent6465d42e7a5368c2ba18eeb8c7648ac47ef1ad4b (diff)
Add missing ntohl() when recording a label request.
Fixes the following ANVL LDP tests: 1.5 and 9.4.
Diffstat (limited to 'usr.sbin/ldpd')
-rw-r--r--usr.sbin/ldpd/lde_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/lde_lib.c b/usr.sbin/ldpd/lde_lib.c
index 6614bf043dd..6024709a770 100644
--- a/usr.sbin/ldpd/lde_lib.c
+++ b/usr.sbin/ldpd/lde_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde_lib.c,v 1.58 2016/05/23 19:14:03 renato Exp $ */
+/* $OpenBSD: lde_lib.c,v 1.59 2016/06/11 02:03:36 renato Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -552,7 +552,7 @@ lde_check_request(struct map *map, struct lde_nbr *ln)
/* LRq.8: record label request */
lre = lde_req_add(ln, &fn->fec, 0);
if (lre != NULL)
- lre->msgid = map->messageid;
+ lre->msgid = ntohl(map->messageid);
/* LRq.9: perform LSR label distribution */
lde_send_labelmapping(ln, fn, 1);