Don't reference vpath after it's been freed.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@136 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2002-04-24 22:50:40 +00:00
parent 96263392d6
commit 2cc6bad9fc
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $P4: //depot/projects/openpam/lib/openpam_dynamic.c#4 $
* $P4: //depot/projects/openpam/lib/openpam_dynamic.c#5 $
*/
#include <dlfcn.h>
@ -80,7 +80,7 @@ openpam_dynamic(const char *path)
module->func[i] = dlsym(dlh, _pam_sm_func_name[i]);
if (module->func[i] == NULL)
openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",
vpath, _pam_sm_func_name[i], dlerror());
path, _pam_sm_func_name[i], dlerror());
}
return (module);
buf_err: