]> granicus.if.org Git - curl/commit
gssapi: fix memory leak of output token in multi round context
authorIsaac Boukris <iboukris@gmail.com>
Fri, 21 Jul 2017 23:00:46 +0000 (02:00 +0300)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 4 Aug 2017 22:23:24 +0000 (00:23 +0200)
commit0b11660234c4f9bbea7308402ad739dc3f153b08
tree573c28032c9784b8691bdd8d170dafe659a6f920
parent61046e7bd59fc5f2ab2e7b1f0b89e2b5a90ae8c7
gssapi: fix memory leak of output token in multi round context

When multiple rounds are needed to establish a security context
(usually ntlm), we overwrite old token with a new one without free.
Found by proposed gss tests using stub a gss implementation (by
valgrind error), though I have confirmed the leak with a real
gssapi implementation as well.

Closes https://github.com/curl/curl/pull/1733
lib/vauth/spnego_gssapi.c