]> git.puffer.fish Git - mirror/frr.git/commit
Fix the "Use-after-free" of clang SA.
authorHung-Weic Chiu <sppsorrg@gmail.com>
Sat, 29 Apr 2017 15:02:31 +0000 (15:02 +0000)
committerHung-Weic Chiu <sppsorrg@gmail.com>
Sat, 29 Apr 2017 15:02:31 +0000 (15:02 +0000)
commit5d6cc38ca36538583ff4c464c46a7c6de08608b6
treefe6169f11f6beee69bbc1464eca367547e67af5d
parentd8d58e98397d8442ec68f8d715b64d5e6000b903
Fix the "Use-after-free" of clang SA.

- Set the pointer to NULL after free it, otherwise the pointer will be accessed again. (since not null)

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
lib/imsg-buffer.c
lib/imsg.c