From 6e9709b13baebb44a48151d3f4348aa904e4afc5 Mon Sep 17 00:00:00 2001 From: mjc Date: Tue, 15 Mar 2005 01:37:05 +0000 Subject: [PATCH] make program use LIBNET_ERRBUF_SIZE instead of having libnet write errors to un-malloc()ed char * bump PKGNAME ok naddy@ --- security/despoof/Makefile | 4 +++- security/despoof/patches/patch-despoof_c | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/security/despoof/Makefile b/security/despoof/Makefile index b071c0cca2e..96754689c88 100644 --- a/security/despoof/Makefile +++ b/security/despoof/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.7 2004/12/27 13:28:33 alek Exp $ +# $OpenBSD: Makefile,v 1.8 2005/03/15 01:37:05 mjc Exp $ COMMENT= "command-line anti-spoofing detection utility" DISTNAME= despoof-0.9 +PKGNAME= ${DISTNAME}p0 + CATEGORIES= security MASTER_SITES= http://razor.bindview.com/tools/files/ \ ${MASTER_SITE_PACKETSTORM:=UNIX/misc/} diff --git a/security/despoof/patches/patch-despoof_c b/security/despoof/patches/patch-despoof_c index a0c52d96d1c..046d7f65ba0 100644 --- a/security/despoof/patches/patch-despoof_c +++ b/security/despoof/patches/patch-despoof_c @@ -1,6 +1,15 @@ -$OpenBSD: patch-despoof_c,v 1.2 2002/02/24 00:15:30 pvalchev Exp $ ---- despoof.c.orig Tue Jul 25 08:51:24 2000 -+++ despoof.c Sat Feb 23 17:10:52 2002 +$OpenBSD: patch-despoof_c,v 1.3 2005/03/15 01:37:06 mjc Exp $ +--- despoof.c.orig Tue Jul 25 07:51:24 2000 ++++ despoof.c Mon Mar 14 10:51:17 2005 +@@ -34,7 +34,7 @@ struct bpf_program pcapfilter; + struct in_addr net, mask; + pcap_t *pd; + char pcap_err[PCAP_ERRBUF_SIZE]; +-u_char *ebuf; ++u_char ebuf[LIBNET_ERRBUF_SIZE]; + char *dev; + struct libnet_link_int *l; + int num_of_questions, link_offset, verbose, target_answers, unexpected, inquery; @@ -150,7 +150,7 @@ void grab_packet(u_char *data1, struct p if (targetaddr == ip->ip_src.s_addr)