diff options
author | Xin LI <delphij@FreeBSD.org> | 2006-04-26 01:47:43 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2006-04-26 01:47:43 +0000 |
commit | a12c23e527411c5db87dd1c105f9f54a96cc4a8e (patch) | |
tree | 4f5be484df995a4ab039085d17fa1cde8a87171a | |
parent | b3be6031931fd472fcd49df21eb20a5f063f4d7a (diff) |
Notes
-rw-r--r-- | contrib/libpcap/pcap-bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libpcap/pcap-bpf.c b/contrib/libpcap/pcap-bpf.c index ccf9d73282889..4a94cda6219a0 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)); |