From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- .../patches/patch-src_aircrack-ptw-lib_c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/aircrack-ng/patches/patch-src_aircrack-ptw-lib_c (limited to 'package/aircrack-ng/patches/patch-src_aircrack-ptw-lib_c') diff --git a/package/aircrack-ng/patches/patch-src_aircrack-ptw-lib_c b/package/aircrack-ng/patches/patch-src_aircrack-ptw-lib_c new file mode 100644 index 000000000..a6f2505af --- /dev/null +++ b/package/aircrack-ng/patches/patch-src_aircrack-ptw-lib_c @@ -0,0 +1,21 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- aircrack-ng-1.0-rc3.orig/src/aircrack-ptw-lib.c 2009-03-26 22:01:02.000000000 +0100 ++++ aircrack-ng-1.0-rc3/src/aircrack-ptw-lib.c 2009-05-01 15:52:04.000000000 +0200 +@@ -454,7 +454,7 @@ int PTW_computeKey(PTW_attackstate * sta + { + // Try the original klein attack first + for (i = 0; i < keylen; i++) { +- bzero(&table[i][0], sizeof(PTW_tableentry) * n); ++ memset(&table[i][0], 0, sizeof(PTW_tableentry) * n); + for (j = 0; j < n; j++) { + table[i][j].b = j; + } +@@ -602,7 +602,7 @@ PTW_attackstate * PTW_newattackstate() { + if (state == NULL) { + return NULL; + } +- bzero(state, sizeof(PTW_attackstate)); ++ memset(state, 0, sizeof(PTW_attackstate)); + for (i = 0; i < PTW_KEYHSBYTES; i++) { + for (k = 0; k < n; k++) { + state->table[i][k].b = k; -- cgit v1.2.3