summaryrefslogtreecommitdiffstats
path: root/database/sqlite/sqlite.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2012-10-11 02:01:08 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2012-10-11 02:06:51 +0200
commit493604d52b466fa7d8444582f547b229710f1dd4 (patch)
tree2149f686958be299c324035f5817ed832510dd13 /database/sqlite/sqlite.c
parent70055c88b201d761b374196159421a3791ecdcac (diff)
downloadeurephia-493604d52b466fa7d8444582f547b229710f1dd4.tar.gz
eurephia-493604d52b466fa7d8444582f547b229710f1dd4.tar.xz
eurephia-493604d52b466fa7d8444582f547b229710f1dd4.zip
eurephia-auth: Fixed a double-free situation with dev-type is not obvious
If OpenVPN is configured with a unkown --dev name and --dev-type is used, eurephia would in some specific situations double-free a memory region keeping the dev-type information. GETENV_*() functions returns a pointer to a buffer which is supposed to be free'd, but pointers returned by eGet_value() should not be free'd. And in the error situation if dev-type is not forced or detected, the memory allocated by GETENV_DEVNAME() was not properly free'd. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> (cherry picked from commit 00bd0ac4cc901004aeaf4548813bb465bce5243f)
Diffstat (limited to 'database/sqlite/sqlite.c')
0 files changed, 0 insertions, 0 deletions