diff options
author | wiz <wiz> | 2008-11-05 19:58:25 +0000 |
---|---|---|
committer | wiz <wiz> | 2008-11-05 19:58:25 +0000 |
commit | 2ee049964f0f390d761fb7d684c4ddfd2872ba06 (patch) | |
tree | de705f46febe01b1054a844eb79ba1819f3679da /net/mtr | |
parent | 8b2d7156adc53423bf579c66de4f780846c89924 (diff) | |
download | pkgsrc-2ee049964f0f390d761fb7d684c4ddfd2872ba06.tar.gz |
Update to 0.75:
v0.75 Feelgood patch to move sprintf to snprintf. People might think
that sprintf might cause a buffer overflow. Now it's clean.
cut-paste patches: you can now copy an intermediate host to the
clipboard.
Diffstat (limited to 'net/mtr')
-rw-r--r-- | net/mtr/Makefile | 4 | ||||
-rw-r--r-- | net/mtr/distinfo | 10 | ||||
-rw-r--r-- | net/mtr/patches/patch-ab | 16 |
3 files changed, 15 insertions, 15 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile index 2377282a157..cb052557d67 100644 --- a/net/mtr/Makefile +++ b/net/mtr/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.52 2008/08/28 20:05:24 tron Exp $ +# $NetBSD: Makefile,v 1.53 2008/11/05 19:58:25 wiz Exp $ -DISTNAME= mtr-0.74 +DISTNAME= mtr-0.75 CATEGORIES= net MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ diff --git a/net/mtr/distinfo b/net/mtr/distinfo index b789d92242a..ff66b5206b6 100644 --- a/net/mtr/distinfo +++ b/net/mtr/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.25 2008/08/29 08:32:41 tonnerre Exp $ +$NetBSD: distinfo,v 1.26 2008/11/05 19:58:25 wiz Exp $ -SHA1 (mtr-0.74.tar.gz) = 33038f02872827ac0f3f10d4b7a86d02c76459a5 -RMD160 (mtr-0.74.tar.gz) = 38bba2bee80f2ae5180354e18f025d71506f3739 -Size (mtr-0.74.tar.gz) = 178587 bytes +SHA1 (mtr-0.75.tar.gz) = d9d3f849e32dda8aa5a7a297c25053e5d8504b27 +RMD160 (mtr-0.75.tar.gz) = d7df41c0c9b457eeff4034c9bc2f01456b8f6c68 +Size (mtr-0.75.tar.gz) = 179376 bytes SHA1 (patch-aa) = 844cfa989ee103f3dbc3c1c96a7d631496a251a9 -SHA1 (patch-ab) = 6736da4136b3a4483330973b5cd05668542fe268 +SHA1 (patch-ab) = 09ad79840272c6e3dc1cad74a3349a0ab6bfee40 diff --git a/net/mtr/patches/patch-ab b/net/mtr/patches/patch-ab index c5e3cf20593..418a507a636 100644 --- a/net/mtr/patches/patch-ab +++ b/net/mtr/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $ +$NetBSD: patch-ab,v 1.16 2008/11/05 19:58:25 wiz Exp $ ---- dns.c.orig 2008-08-19 18:07:33.000000000 +0100 -+++ dns.c 2008-08-24 13:22:55.000000000 +0100 -@@ -310,6 +310,17 @@ +--- dns.c.orig 2008-09-18 12:36:50.000000000 +0000 ++++ dns.c +@@ -310,6 +310,17 @@ char nullstring[] = ""; int use_dns = 1; @@ -20,7 +20,7 @@ $NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $ /* Code */ #ifdef CorruptCheck -@@ -484,14 +495,14 @@ +@@ -484,14 +495,14 @@ void dns_open(void) { int option,i; @@ -40,7 +40,7 @@ $NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $ resfd = socket(AF_INET, SOCK_DGRAM, 0); if (resfd == -1) { fprintf(stderr,"Unable to allocate socket for nameserver communication: %s\n", -@@ -874,17 +885,17 @@ +@@ -874,17 +885,17 @@ void dorequest(char *s,int type,word id) { packetheader *hp; int r,i; @@ -62,7 +62,7 @@ $NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $ sizeof(struct sockaddr)); } -@@ -1240,18 +1251,18 @@ +@@ -1240,18 +1251,18 @@ void dns_ack(void) /* Check to see if this server is actually one we sent to */ if ( addrcmp( (void *) &(from4->sin_addr), (void *) &localhost, (int) AF_INET ) == 0 ) { @@ -84,6 +84,6 @@ $NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $ break; - if (i == _res.nscount) { + if (i == myres.nscount) { - sprintf(tempstring,"Resolver error: Received reply from unknown source: %s", + snprintf(tempstring, sizeof(tempstring), "Resolver error: Received reply from unknown source: %s", inet_ntoa(from4->sin_addr )); restell(tempstring); |