aboutsummaryrefslogtreecommitdiff
path: root/net/irrd/files/patch-database.c
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2012-03-15 11:45:48 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2012-03-15 11:45:48 +0000
commit7ae0a4d83fc9bd76ae7e11061a57aa7c376c8e8e (patch)
tree5b0f89dcea5fcd6d58c4394225e65031b187fd3d /net/irrd/files/patch-database.c
parent4194328d6f5f62041d48d1761dd98c8e06306a8a (diff)
Notes
Diffstat (limited to 'net/irrd/files/patch-database.c')
-rw-r--r--net/irrd/files/patch-database.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/irrd/files/patch-database.c b/net/irrd/files/patch-database.c
new file mode 100644
index 000000000000..fc32c929eb34
--- /dev/null
+++ b/net/irrd/files/patch-database.c
@@ -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;
++ }
+ }
+
+