The following diff fixes an issue with claws mail sometimes crashing
if you interrupt claws mail in the middle of sending an e-mail.

From claws mail CVS


Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/claws-mail/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    14 May 2007 22:24:26 -0000      1.6
+++ Makefile    27 May 2007 21:26:00 -0000
@@ -9,7 +9,7 @@ COMMENT-spamassassin=   "spamassassin plug
 
 V=                     2.9.2
 DISTNAME=              claws-mail-${V}
-PKGNAME-main=                  ${DISTNAME}p0
+PKGNAME-main=                  ${DISTNAME}p1
 FULLPKGNAME-docs=              claws-mail-docs-${V}p0
 FULLPKGNAME-bogofilter=                claws-mail-bogofilter-${V}p0
 FULLPKGNAME-clamav=            claws-mail-clamav-${V}p0
Index: patches/patch-src_common_socket_c
===================================================================
RCS file: patches/patch-src_common_socket_c
diff -N patches/patch-src_common_socket_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_common_socket_c   27 May 2007 21:53:11 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- src/common/socket.c.orig   Sun May 27 17:52:11 2007
++++ src/common/socket.c        Sun May 27 17:52:53 2007
+@@ -447,6 +447,9 @@ static gboolean sock_watch_cb(GIOChannel *source, GIOC
+ guint sock_add_watch(SockInfo *sock, GIOCondition condition, SockFunc func,
+                    gpointer data)
+ {
++      if (!sock)
++              return FALSE;
++
+       sock->callback = func;
+       sock->condition = condition;
+       sock->data = data;

Reply via email to