1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix areafix and ftntick crashes.

This commit is contained in:
Andrey Slusar 2006-11-15 11:31:35 +00:00
parent 37e7f3696f
commit 0540ac4e04
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177308
3 changed files with 35 additions and 0 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= fidogate
PORTVERSION= 5.1.5
PORTREVISION= 1
CATEGORIES= news mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= rusfidogate

View File

@ -0,0 +1,17 @@
Index: src/areafix/areafix.c
===================================================================
RCS file: /cvsroot/rusfidogate/fidogate-sta/src/areafix/areafix.c,v
retrieving revision 5.5
retrieving revision 5.6
diff -u -r5.5 -r5.6
--- src/areafix/areafix.c 26 Feb 2006 15:48:31 -0000 5.5
+++ src/areafix/areafix.c 15 Nov 2006 09:15:36 -0000 5.6
@@ -1946,7 +1946,7 @@
for (a=uplinks_lookup (areafix, area); a; a=a->next)
{
/* Create area */
- if (a->options)
+ if (a != NULL && a->options != NULL)
BUF_COPY3( buf, a->areas, " ", a->options );
else
BUF_COPY( buf, a->areas );

View File

@ -0,0 +1,17 @@
Index: src/tick/ftntick.c
===================================================================
RCS file: /cvsroot/rusfidogate/fidogate-sta/src/tick/ftntick.c,v
retrieving revision 5.2
retrieving revision 5.3
diff -u -r5.2 -r5.3
--- src/tick/ftntick.c 23 Nov 2005 23:12:22 -0000 5.2
+++ src/tick/ftntick.c 15 Nov 2006 08:59:25 -0000 5.3
@@ -370,7 +370,7 @@
}
a = uplinks_line_get(FALSE, &tic->from);
- if(a->options)
+ if(a != NULL && a->options != NULL)
{
tmp = (char*) xmalloc(strlen(tic->area)
+ strlen(autocreate_line)