diff options
Diffstat (limited to 'ospfd/ospf_abr.c')
-rw-r--r-- | ospfd/ospf_abr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c index 9f3a587cb..e23ace205 100644 --- a/ospfd/ospf_abr.c +++ b/ospfd/ospf_abr.c @@ -596,7 +596,7 @@ set_metric (struct ospf_lsa *lsa, u_int32_t metric) struct summary_lsa *header; u_char *mp; metric = htonl (metric); - mp = (char *) &metric; + mp = (u_char *) &metric; mp++; header = (struct summary_lsa *) lsa->data; memcpy(header->metric, mp, 3); |