mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
- Add patches to fix two crash dumps
Submitted by: Boris Lytochkin <lytboris_at_yandex-team.ru> Feature safe: Yes
This commit is contained in:
parent
4194328d6f
commit
7ae0a4d83f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293335
3 changed files with 28 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= irrd
|
||||
PORTVERSION= 2.3.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://www.irrd.net/
|
||||
DISTNAME= ${PORTNAME}${PORTVERSION}
|
||||
|
|
11
net/irrd/files/patch-config_file.c
Normal file
11
net/irrd/files/patch-config_file.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- lib/config/config_file.c.orig 2009-03-25 00:38:11.000000000 +0300
|
||||
+++ lib/config/config_file.c 2011-06-24 17:09:08.000000000 +0400
|
||||
@@ -772,7 +772,7 @@
|
||||
Deref_Prefix (prefix);
|
||||
return (1);
|
||||
}
|
||||
- if (prefix_compare2 (UII->prefix, prefix) != 0) {
|
||||
+ if ( UII->prefix == NULL || prefix_compare2 (UII->prefix, prefix) != 0) {
|
||||
set_uii (UII, UII_ADDR, prefix, 0);
|
||||
listen_uii2 (NULL);
|
||||
}
|
16
net/irrd/files/patch-database.c
Normal file
16
net/irrd/files/patch-database.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- programs/IRRd/database.c~ 2009-03-25 00:21:26.000000000 +0300
|
||||
+++ programs/IRRd/database.c 2012-03-15 10:53:03.000000000 +0400
|
||||
@@ -59,9 +59,11 @@
|
||||
|
||||
db->radix_v4 = New_Radix (32);
|
||||
db->radix_v6 = New_Radix (128);
|
||||
- fclose (db->db_fp);
|
||||
|
||||
- db->db_fp = NULL;
|
||||
+ if (db->db_fp) {
|
||||
+ fclose (db->db_fp);
|
||||
+ db->db_fp = NULL;
|
||||
+ }
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue