svn commit: r547555 - in head/net-mgmt/rate: . files
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Sep 4 17:23:13 UTC 2020
Author: danfe
Date: Fri Sep 4 17:23:12 2020
New Revision: 547555
URL: https://svnweb.freebsd.org/changeset/ports/547555
Log:
Include missing "dns.h" header to get the prototype for dns_lookup() which
returns char *. Without it, compiler has to assume that it returns an int,
which results in segmentation fault e.g. in -A (bandwidth abusers) mode.
Added:
head/net-mgmt/rate/files/patch-rate__abusers.c (contents, props changed)
head/net-mgmt/rate/files/patch-rate__sta.c (contents, props changed)
Modified:
head/net-mgmt/rate/Makefile
Modified: head/net-mgmt/rate/Makefile
==============================================================================
--- head/net-mgmt/rate/Makefile Fri Sep 4 17:04:02 2020 (r547554)
+++ head/net-mgmt/rate/Makefile Fri Sep 4 17:23:12 2020 (r547555)
@@ -3,7 +3,7 @@
PORTNAME= rate
PORTVERSION= 0.9
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://s-tech.elsat.net.pl/bmtools/
Added: head/net-mgmt/rate/files/patch-rate__abusers.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/rate/files/patch-rate__abusers.c Fri Sep 4 17:23:12 2020 (r547555)
@@ -0,0 +1,10 @@
+--- rate_abusers.c.orig 2003-08-20 15:42:14 UTC
++++ rate_abusers.c
+@@ -33,6 +33,7 @@
+ #include <time.h>
+ #include <pcap.h>
+ #include "lib.h"
++#include "dns.h"
+ #ifdef HAVE_REGEX
+ #include <regex.h>
+ #endif
Added: head/net-mgmt/rate/files/patch-rate__sta.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/rate/files/patch-rate__sta.c Fri Sep 4 17:23:12 2020 (r547555)
@@ -0,0 +1,10 @@
+--- rate_sta.c.orig 2003-08-20 14:31:53 UTC
++++ rate_sta.c
+@@ -34,6 +34,7 @@
+ #include <time.h>
+ #include <pcap.h>
+ #include "lib.h"
++#include "dns.h"
+ #ifdef HAVE_REGEX
+ #include <regex.h>
+ #endif
More information about the svn-ports-all
mailing list