summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2009-08-01 13:30:55 +0000
committermichele <michele@openbsd.org>2009-08-01 13:30:55 +0000
commit39fe805c0e859117f688404dc27f9de6175cedf7 (patch)
tree6fa9f4d0727e8c40c6f67be2182fa844ef9dd167
parentCorrectly print interface state and neighbor uptime in ldpctl show neighbor. (diff)
downloadwireguard-openbsd-39fe805c0e859117f688404dc27f9de6175cedf7.tar.xz
wireguard-openbsd-39fe805c0e859117f688404dc27f9de6175cedf7.zip
Pass the right size of the structure "map" to the ldpd engine.
-rw-r--r--usr.sbin/ldpd/lde.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c
index 913300bcd12..f9756334754 100644
--- a/usr.sbin/ldpd/lde.c
+++ b/usr.sbin/ldpd/lde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.c,v 1.4 2009/07/08 18:59:29 michele Exp $ */
+/* $OpenBSD: lde.c,v 1.5 2009/08/01 13:30:55 michele Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -496,7 +496,7 @@ void
lde_send_labelrequest(u_int32_t peerid, struct map *map)
{
imsg_compose_event(iev_ldpe, IMSG_REQUEST_ADD, peerid, 0,
- -1, map, sizeof(map));
+ -1, map, sizeof(*map));
imsg_compose_event(iev_ldpe, IMSG_REQUEST_ADD_END, peerid, 0,
-1, NULL, 0);
}
@@ -505,7 +505,7 @@ void
lde_send_labelmapping(u_int32_t peerid, struct map *map)
{
imsg_compose_event(iev_ldpe, IMSG_MAPPING_ADD, peerid, 0,
- -1, map, sizeof(map));
+ -1, map, sizeof(*map));
imsg_compose_event(iev_ldpe, IMSG_MAPPING_ADD_END, peerid, 0,
-1, NULL, 0);
}
@@ -514,7 +514,7 @@ void
lde_send_labelrelease(u_int32_t peerid, struct map *map)
{
imsg_compose_event(iev_ldpe, IMSG_RELEASE_ADD, peerid, 0,
- -1, map, sizeof(map));
+ -1, map, sizeof(*map));
imsg_compose_event(iev_ldpe, IMSG_RELEASE_ADD_END, peerid, 0,
-1, NULL, 0);
}