diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-08-01 13:30:56 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-08-01 13:30:56 +0000 |
commit | b43979f4b1b990d09ef7734f05d3a2044c9199ce (patch) | |
tree | 55c03175c119f7d63223532f6dd1f675026a0734 /usr.sbin/ldpd/lde.c | |
parent | 90064a08f94704ce771bc1cf9cc862752d66cbea (diff) |
Pass the right size of the structure "map" to the ldpd engine.
Diffstat (limited to 'usr.sbin/ldpd/lde.c')
-rw-r--r-- | usr.sbin/ldpd/lde.c | 8 |
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); } |