summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-10-29 01:29:23 -0700
committerStef Walter <stefw@collabora.co.uk>2011-10-29 01:29:23 -0700
commitdf0ed92f44fa168c0d02866796f3707687f43214 (patch)
treecbf06d7aaf34036bdf14400e07182ab134593c68 /p11-kit
parent922d53016955c0ff2d6d830d726f0d1ea3a5804b (diff)
Fix problems crashing when freeing TLS on windows
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/util.c b/p11-kit/util.c
index c7f6138..c04b636 100644
--- a/p11-kit/util.c
+++ b/p11-kit/util.c
@@ -319,6 +319,8 @@ static void
free_tls_value (LPVOID data)
{
p11_local *local = data;
+ if (local == NULL)
+ return;
if (local->last_error)
LocalFree (local->last_error);
LocalFree (data);