gss: check for NULL before calling dlclose()

Calling dlclose(NULL) on some recent versions of Linux appears to cause the
process to segfault.
This commit is contained in:
Luke Howard
2021-08-19 10:39:58 +00:00
parent a56c3ad819
commit b3511c145c

View File

@@ -451,7 +451,8 @@ _gss_load_mech(void)
free((char *)m->gm_mech.gm_name);
free(m);
}
dlclose(so);
if (so != NULL)
dlclose(so);
continue;
}
fclose(fp);