]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix memory leak in auth-pam plugin 36/head
authorSteffan Karger <steffan@karger.me>
Tue, 20 Oct 2015 22:38:26 +0000 (00:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 22 Oct 2015 17:52:03 +0000 (19:52 +0200)
commit6a5e978085cc721bb09796ab44d77c3142b5f78b
treef9c89cdecf9b2aa759288f1fa4cd7592417de090
parentd03dd06e59dc98eb2afaaa49cb1f879cab9ce747
Fix memory leak in auth-pam plugin

As it says on the tin.  aresp would not be free'd nor returned by
my_conv() on errors.  Note that we never reach this code if allocation
of aresp failed.

Found with the Clang static analyzer.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <1445380706-20864-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10338
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit cfc13b38bc6504b9768e4cc43311807d6b074672)
src/plugins/auth-pam/auth-pam.c