From 3ba047b587fc87992b7999b38db6418f7efc04ea Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 21 Feb 2010 06:19:09 +0000 Subject: dlclose() call should also be #ifdef HAVE_DLOPEN --- usr.bin/ssh/ssh-pkcs11.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/ssh') diff --git a/usr.bin/ssh/ssh-pkcs11.c b/usr.bin/ssh/ssh-pkcs11.c index 39ba7849f47..81e9865c494 100644 --- a/usr.bin/ssh/ssh-pkcs11.c +++ b/usr.bin/ssh/ssh-pkcs11.c @@ -97,7 +97,9 @@ pkcs11_provider_finalize(struct pkcs11_provider *p) error("C_Finalize failed: %lu", rv); p->valid = 0; p->function_list = NULL; +#ifdef HAVE_DLOPEN dlclose(p->handle); +#endif } /* -- cgit v1.2.3