]> git.proxmox.com Git - mirror_frr.git/commit
Revert "Fix the "Use-after-free" of clang SA."
authorHung-Weic Chiu <sppsorrg@gmail.com>
Tue, 2 May 2017 00:28:41 +0000 (00:28 +0000)
committerHung-Weic Chiu <sppsorrg@gmail.com>
Tue, 2 May 2017 00:33:15 +0000 (00:33 +0000)
commit4da93320c7332aaa894c9ec32cff43984adba60d
treee2b42302e13cdb0f6741a084eebb2c90aec66d52
parentc604467a081a332848bf486a207649d79abbe3fd
Revert "Fix the "Use-after-free" of clang SA."

- This's the wrong way to fix this problem.
- Since the "TAILQ_FIRST()" always return diferent pointer as we call "TAILQ_REMOVE()", the clang static analyzer can't detect this behavior.
- Ignore this warning and keep files identical to its original one.

This reverts commit 5d6cc38ca36538583ff4c464c46a7c6de08608b6.

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