]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Properly initialize memory for rtadv
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 2 Oct 2017 14:45:30 +0000 (10:45 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 2 Oct 2017 15:06:06 +0000 (11:06 -0400)
commitb8aa37676635e4c283041acdb7de61967117a60b
tree1d1630fce9744a24e1081997e477c8f7410232cd
parentcbaca6a144e400cb6f9f8ee9dd58fe2af1ba9bdd
zebra: Properly initialize memory for rtadv

The adata pointer was not properly being set to
0 before being used.  In addition notice malloc
failure and hard exit.  If we have no memory on
startup something terrible has gone wrong and
we were going to crash shortly here anyways.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rtadv.c