summarylogtreecommitdiffstats
path: root/fixtimeout.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fixtimeout.patch')
-rw-r--r--fixtimeout.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/fixtimeout.patch b/fixtimeout.patch
new file mode 100644
index 000000000000..6be5f3decb6f
--- /dev/null
+++ b/fixtimeout.patch
@@ -0,0 +1,21 @@
+diff -Naur asleap-2.2/asleap.c asleap-2.2-new/asleap.c
+--- asleap-2.2/asleap.c 2008-05-28 10:36:21.000000000 -0500
++++ asleap-2.2-new/asleap.c 2020-12-27 03:50:06.417501493 -0500
+@@ -1395,7 +1395,7 @@
+ char *device, dictfile[255], dictidx[255], pcapfile[255];
+ struct asleap_data asleap;
+ struct stat dictstat, capturedatastat;
+- int findleaptimeout = 5;
++ int findleaptimeout = 0;
+ unsigned int findlpexchret = 0;
+ int ret=0;
+ extern int success;
+@@ -1605,7 +1605,7 @@
+
+ while (1) {
+
+- findlpexchret = findlpexch(&asleap, 0, offset);
++ findlpexchret = findlpexch(&asleap, findleaptimeout, offset);
+
+ if (findlpexchret == LEAPEXCHFOUND) {
+ printf("\nCaptured LEAP exchange information:\n");