$FreeBSD: ports/mail/anubis/files/patch-src_tunnel.c,v 1.1 2004/03/07 20:49:32 naddy Exp $

--- src/tunnel.c.orig	Sun Dec  8 19:04:51 2002
+++ src/tunnel.c	Sun Mar  7 14:55:10 2004
@@ -554,9 +554,11 @@
 				ptr1 = strstr(boundary_buf, "boundary=");
 				if (ptr1 == 0) {
 					plist = plist->next;
-					safe_strcpy(boundary_buf, plist->line);
-					change_to_lower(boundary_buf);
-					ptr1 = strstr(boundary_buf, "boundary=");
+					if (plist) {
+						safe_strcpy(boundary_buf, plist->line);
+						change_to_lower(boundary_buf);
+						ptr1 = strstr(boundary_buf, "boundary=");
+					}
 				}
 
 				if (ptr1) {


syntax highlighted by Code2HTML, v. 0.9.1