summaryrefslogtreecommitdiff
path: root/mail/evolution/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'mail/evolution/patches/patch-ad')
-rw-r--r--mail/evolution/patches/patch-ad16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/evolution/patches/patch-ad b/mail/evolution/patches/patch-ad
new file mode 100644
index 00000000000..e58c27566cf
--- /dev/null
+++ b/mail/evolution/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.6 2005/01/25 15:23:46 drochner Exp $
+
+--- camel/camel-lock-helper.c.orig 2005-01-25 15:34:38.000000000 +0100
++++ camel/camel-lock-helper.c
+@@ -360,8 +360,9 @@ int main(int argc, char **argv)
+ switch(msg.id) {
+ case CAMEL_LOCK_HELPER_LOCK:
+ res = CAMEL_LOCK_HELPER_STATUS_NOMEM;
+- path = malloc(msg.data+1);
+- if (path != NULL) {
++ if (msg.data > 0xffff) {
++ res = CAMEL_LOCK_HELPER_STATUS_PROTOCOL;
++ } else if ((path = malloc(msg.data+1)) != NULL) {
+ res = CAMEL_LOCK_HELPER_STATUS_PROTOCOL;
+ len = read_n(STDIN_FILENO, path, msg.data);
+ if (len == msg.data) {