Pascal Bleser 2009-12-31 10:22:01 +00:00 committed by Git OBS Bridge
parent b4d8ffcf10
commit 6077604162
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/netsniff-ng.c.orig 2009-12-31 11:18:59.000000000 +0100
+++ src/netsniff-ng.c 2009-12-31 11:20:29.000000000 +0100
@@ -436,7 +436,7 @@
exit(EXIT_FAILURE);
}
- memset(bpf, 0, sizeof(**bpf));
+ memset(*bpf, 0, sizeof(**bpf));
(*rb) = (ring_buff_t *) malloc(sizeof(**rb));
if ((*rb) == NULL) {

View File

@ -7,6 +7,7 @@ Summary: High Performance Network Sniffer for Packet Inspection
# http://netsniff-ng.googlecode.com/files/netsniff-ng-%{version}.tar.gz
Source: netsniff-ng-%{version}.tar.bz2
Patch1: netsniff-ng-fix_printf_format.patch
Patch2: netsniff-ng-fix_buffer_overflow.patch
URL: http://code.google.com/p/netsniff-ng/
Group: Productivity/Networking/Diagnostic
License: GNU General Public License version 2 or later (GPL v2 or later)
@ -42,6 +43,7 @@ Authors:
%prep
%setup -q
%patch1
%patch2
%build
pushd src