]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fixed a couple issues in sample plugins auth-pam.c and down-root.c:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Thu, 10 Dec 2009 23:50:03 +0000 (23:50 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Thu, 10 Dec 2009 23:50:03 +0000 (23:50 +0000)
commit5bb8bfea4399117c6ec42a58991e48e9e748a62b
tree15d51c1440e476d629801cb36ff1c43d40b660e1
parent1852709cd5093995f97ba4860d1a6083c6df6d6c
Fixed a couple issues in sample plugins auth-pam.c and down-root.c:

1. Fail gracefully rather than segfault if calloc returns NULL.

2. The openvpn_plugin_abort_v1 function can potentially be called
   with handle == NULL.  Add code to detect this case, and if
   so, avoid dereferencing pointers derived from handle.

(Thanks to David Sommerseth for finding this bug).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5261 e7ae566f-a301-0410-adde-c780ea21d3b5
plugin/auth-pam/auth-pam.c
plugin/down-root/down-root.c