summaryrefslogtreecommitdiff
path: root/package/aircrack-ng/patches/patch-src_airtun-ng_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/aircrack-ng/patches/patch-src_airtun-ng_c')
-rw-r--r--package/aircrack-ng/patches/patch-src_airtun-ng_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/aircrack-ng/patches/patch-src_airtun-ng_c b/package/aircrack-ng/patches/patch-src_airtun-ng_c
new file mode 100644
index 000000000..4723eaf1a
--- /dev/null
+++ b/package/aircrack-ng/patches/patch-src_airtun-ng_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- aircrack-ng-1.0-rc3.orig/src/airtun-ng.c 2009-03-26 22:01:02.000000000 +0100
++++ aircrack-ng-1.0-rc3/src/airtun-ng.c 2009-05-01 15:52:04.000000000 +0200
+@@ -222,7 +222,7 @@ int addFrag(unsigned char* packet, unsig
+ if(rFragment == NULL)
+ return -1;
+
+- bzero(frame, 4096);
++ memset(frame, 0, 4096);
+ memcpy(frame, packet, len);
+
+ z = ( ( frame[1] & 3 ) != 3 ) ? 24 : 30;
+@@ -1029,7 +1029,7 @@ int main( int argc, char *argv[] )
+ memset( &dev, 0, sizeof( dev ) );
+
+ rFragment = (pFrag_t) malloc(sizeof(struct Fragment_list));
+- bzero(rFragment, sizeof(struct Fragment_list));
++ memset(rFragment, 0, sizeof(struct Fragment_list));
+
+ opt.r_nbpps = 100;
+ opt.tods = 0;