summaryrefslogtreecommitdiff
blob: 417bf82df448d4077045fe45b8dbc73449c94c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: contrib/mod_tls_shmcache.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/contrib/mod_tls_shmcache.c,v
retrieving revision 1.5
diff -u -r1.5 mod_tls_shmcache.c
--- contrib/mod_tls_shmcache.c	7 Nov 2009 20:11:41 -0000	1.5
+++ contrib/mod_tls_shmcache.c	18 Dec 2009 17:34:47 -0000
@@ -1240,6 +1240,10 @@
   struct shmid_ds ds;
   const char *cache_file;
 
+  if (shmcache_fh == NULL) {
+    return 0;
+  }
+
   pr_trace_msg(trace_channel, 9, "removing shmcache cache %p", cache); 
 
   cache_file = shmcache_fh->fh_path;