Skip to content

pam: Fix double free after verification error

Benjamin Berg requested to merge benzea/fix-double-free into master

The data->result was free'ed both in the loop (before breaking) and afterwards. As the first case did not set the pointer to NULL, this could result in a double free.

Fix this by simply removing the free that is in the loop and relying on the cleanup later on.

Edited by Bastien Nocera

Merge request reports