summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-12-18 23:13:26 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-12-18 23:13:26 +0000
commitcf54f62aa5ccf80f8c3b9009fced60ae16fa4184 (patch)
tree4bef531b698e3966a884c59e7054aee8698c9ca3 /net-ftp/proftpd/files
parentAdd missing prefix keywords (diff)
downloadgentoo-2-cf54f62aa5ccf80f8c3b9009fced60ae16fa4184.tar.gz
gentoo-2-cf54f62aa5ccf80f8c3b9009fced60ae16fa4184.tar.bz2
gentoo-2-cf54f62aa5ccf80f8c3b9009fced60ae16fa4184.zip
Fix segfault on configuration checking, bug #297310
(Portage version: 2.2_rc60/cvs/Linux x86_64)
Diffstat (limited to 'net-ftp/proftpd/files')
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.3_rc3-tls-shmcache-bug3359.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-ftp/proftpd/files/proftpd-1.3.3_rc3-tls-shmcache-bug3359.patch b/net-ftp/proftpd/files/proftpd-1.3.3_rc3-tls-shmcache-bug3359.patch
new file mode 100644
index 000000000000..417bf82df448
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd-1.3.3_rc3-tls-shmcache-bug3359.patch
@@ -0,0 +1,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;