]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: Recent changes in our build cause const to be respected 6120/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Mar 2020 11:55:17 +0000 (07:55 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 1 Apr 2020 10:37:34 +0000 (06:37 -0400)
commit4062abfae55c5dd798a2747da1b739d4cfd0a0fa
tree53beb3168df801938f29d2ef1e09d1d1c94c09f1
parent78e9da668dc607c5d7f5c4cd3098b6e3112d8630
ospf6d: Recent changes in our build cause const to be respected

We are seeing this crash:

New LWP 7673]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/frr/ospf6d -d -F datacenter -M snmp -A ::1'.
Program terminated with signal SIGABRT, Aborted.
(gdb) bt
    vtysh=vtysh@entry=0) at lib/command.c:1288
(gdb)

The command entered is `debug ospf6 lsa inter-router examin`.  Code
inspection leads us to the fact that FRR is declaring the data as
const but we are attempting to modify it, causing the crash.

Remvoe the const of this set/get and let things work.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospf6d/ospf6_abr.c
ospf6d/ospf6_asbr.c
ospf6d/ospf6_intra.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_lsa.h