summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorpaul <paul>2004-09-22 13:15:58 +0000
committerpaul <paul>2004-09-22 13:15:58 +0000
commit44983cf8a9c587dfbcad294b9dfe4dccbb68ba98 (patch)
treeed73660eff1e0a1a6a66d63892b7145892ba9190 /zebra
parentb89e60c7abd457f97df8351db5610fc9c15178b2 (diff)
2004-09-22 Paul Jakma <paul.jakma@sun.com>
* zserv.c: (zsend_route_multipath) fix nasty bad memset of struct in_addr to sizeof(struct in6_addr), causing odd and hard to debug crash.
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog6
-rw-r--r--zebra/zserv.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index b6798077..275537ff 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-22 Paul Jakma <paul.jakma@sun.com>
+
+ * zserv.c: (zsend_route_multipath) fix nasty bad memset of struct
+ in_addr to sizeof(struct in6_addr), causing odd and hard to debug
+ crash.
+
2004-08-31 Hasso Tepper <hasso at quagga.net>
* main.c, rt_netlink.c: Added -s command line switch for tuning
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 4779b643..96d6f533 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -497,7 +497,7 @@ zsend_route_multipath (int cmd, struct zserv *client, struct prefix *p,
|| cmd == ZEBRA_IPV4_ROUTE_DELETE)
{
struct in_addr empty;
- memset (&empty, 0, sizeof (struct in6_addr));
+ memset (&empty, 0, sizeof (struct in_addr));
stream_write (s, (u_char *) &empty, IPV4_MAX_BYTELEN);
}
else