]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Fix crash in ptm code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 25 Jan 2018 01:53:40 +0000 (20:53 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 25 Jan 2018 01:53:40 +0000 (20:53 -0500)
commit9cc4624852c87f6011a57b7acdd72391586571c7
treea342f205a88cda159a2ce6cdb4e8f58c69395dc5
parentc6301d7eab6330cceea7f9eee939cb7f461499a7
zebra: Fix crash in ptm code

The code change to switch from stream_getX to STREAM_GETX added
a goto statement to be handled for a failure case.  The failure
case was properly handled but the normal case was not tested
properly and there exists a situation where we would free
the out_ctxt 2 times.  Prevent that from happening.

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