aur/fixtimeout.patch
2020-12-27 03:57:11 -05:00

21 lines
714 B
Diff

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");