packages/net/aircrack-ng/patches/001-no_abusive_malloc.patch

15 lines
540 B
Diff
Raw Normal View History

diff -urN aircrack-ng-r1142/src/aircrack-ng.c aircrack-ng-r1142.new/src/aircrack-ng.c
--- aircrack-ng-r1142/src/aircrack-ng.c 2008-08-17 03:04:57.000000000 +0200
+++ aircrack-ng-r1142.new/src/aircrack-ng.c 2008-11-09 23:29:20.000000000 +0100
@@ -4450,8 +4450,8 @@
opt.bssidmerge = NULL;
opt.oneshot = 0;
- all_ivs = malloc( (256*256*256) * sizeof(used_iv));
- bzero(all_ivs, (256*256*256)*sizeof(used_iv));
+ //all_ivs = malloc( (256*256*256) * sizeof(used_iv));
+ //bzero(all_ivs, (256*256*256)*sizeof(used_iv));
forceptw = 0;