aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-01-16 20:33:23 +0000
committerSam Leffler <sam@FreeBSD.org>2006-01-16 20:33:23 +0000
commit04679efc461cf40fcd2f0d0c54918307fb25f037 (patch)
tree232596edecd144ccc53c88fa90e72fe7ed4e0560 /contrib/libpcap
parentee2dd488bf795a49670e92d0c5a838cc80522088 (diff)
downloadsrc-04679efc461cf40fcd2f0d0c54918307fb25f037.tar.gz
src-04679efc461cf40fcd2f0d0c54918307fb25f037.zip
correct dlt buffer alloc; this goes on the vendor branch as it
will be committed there shortly MFC after: 3 days
Notes
Notes: svn path=/vendor/libpcap/dist/; revision=154439
Diffstat (limited to 'contrib/libpcap')
-rw-r--r--contrib/libpcap/pcap-bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libpcap/pcap-bpf.c b/contrib/libpcap/pcap-bpf.c
index ccf9d7328288..4a94cda6219a 100644
--- a/contrib/libpcap/pcap-bpf.c
+++ b/contrib/libpcap/pcap-bpf.c
@@ -746,7 +746,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
u_int i;
int is_ethernet;
- bdl.bfl_list = (u_int *) malloc(sizeof(u_int) * bdl.bfl_len + 1);
+ bdl.bfl_list = (u_int *) malloc(sizeof(u_int) * (bdl.bfl_len + 1));
if (bdl.bfl_list == NULL) {
(void)snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
pcap_strerror(errno));