make program use LIBNET_ERRBUF_SIZE instead of having

libnet write errors to un-malloc()ed char *

bump PKGNAME

ok naddy@
This commit is contained in:
mjc 2005-03-15 01:37:05 +00:00
parent 789a0c6396
commit 6e9709b13b
2 changed files with 15 additions and 4 deletions

View File

@ -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/}

View File

@ -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)