]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix memory leak in auth-pam plugin
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:50:36 +0000 (19:50 +0200)
commitcfc13b38bc6504b9768e4cc43311807d6b074672
tree4b42830b595973539fab07fd41be73773fca764a
parentdd8d351dbc92ede6726b7090ed4eceb9b95318c6
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>
src/plugins/auth-pam/auth-pam.c