dns/fastresolve: fix segfault

PR:		207589, 207628
Submitted by:	Miroslav Lachman <000.fbsd@quip.cz>, Dan Lukes <dan@obluda.cz>, Chris Hutchinsin <portmaster@bsdforge.com> (maintainer)
This commit is contained in:
Kurt Jaeger 2016-03-02 07:58:13 +00:00
parent 943331d5dc
commit 536a7e97be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409915
5 changed files with 22 additions and 12 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= fastresolve
PORTVERSION= 2.10
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= dns
MASTER_SITES= http://BSDforge.com/projects/source/dns/fastresolve/

View file

@ -0,0 +1,10 @@
--- dns-terror/BoolString.h.orig 2003-05-17 17:58:52 UTC
+++ dns-terror/BoolString.h
@@ -56,6 +56,7 @@ public:
BoolString &operator=(const BoolString &other) {
str = other.str;
flag = other.flag;
+ return *this;
}
int operator<(const BoolString &other) const {
return strcmp(str, other.str) < 0;

View file

@ -1,6 +1,6 @@
--- dns-terror/DatedStringDb.cc.orig Sat Sep 6 18:38:24 2003
+++ dns-terror/DatedStringDb.cc Sat Sep 6 18:38:31 2003
@@ -69,7 +69,11 @@
--- dns-terror/DatedStringDb.cc.orig 2003-05-17 18:14:35 UTC
+++ dns-terror/DatedStringDb.cc
@@ -69,7 +69,11 @@ DatedStringDb::DatedStringDb(const char
env->set_cachesize(0, MPOOL_SIZE, 0);
env->open(dbhome, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0644);
db = new Db(env, 0);

View file

@ -1,6 +1,6 @@
--- dns-terror/dns-terror.cc.orig Mon Oct 4 13:28:02 2004
+++ dns-terror/dns-terror.cc Mon Oct 4 13:28:53 2004
@@ -331,8 +331,7 @@
--- dns-terror/dns-terror.cc.orig 2003-05-17 18:04:55 UTC
+++ dns-terror/dns-terror.cc
@@ -331,8 +331,7 @@ submit_query(adns_state ads, BoolStringM
}
r = adns_submit(ads, rev, adns_r_ptr_raw,

View file

@ -1,6 +1,6 @@
--- dns-terror/getline.c.orig 2009-03-25 02:34:45.000000000 -0400
+++ dns-terror/getline.c 2009-03-25 02:38:48.000000000 -0400
@@ -26,6 +26,7 @@
--- dns-terror/getline.c.orig 2002-10-07 02:53:13 UTC
+++ dns-terror/getline.c
@@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suit
is defined. */
#define _GNU_SOURCE 1
#include <stdio.h>
@ -8,7 +8,7 @@
#include <sys/types.h>
#if defined __GNU_LIBRARY__ && HAVE_GETDELIM
@@ -134,6 +135,7 @@
@@ -134,6 +135,7 @@ getstr (lineptr, n, stream, terminator,
return ret;
}
@ -16,7 +16,7 @@
int
getline (lineptr, n, stream)
char **lineptr;
@@ -152,4 +154,5 @@
@@ -152,4 +154,5 @@ getdelim (lineptr, n, delimiter, stream)
{
return getstr (lineptr, n, stream, delimiter, 0);
}