Browse Source

ead: allow a longer timeout in the client for the prime number calculation (useful for slow devices)

SVN-Revision: 13907
Felix Fietkau 17 năm trước cách đây
mục cha
commit
74429f0961
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      package/ead/src/ead-client.c

+ 1 - 2
package/ead/src/ead-client.c

@@ -407,12 +407,11 @@ int main(int argc, char **argv)
 		fprintf(stderr, "Device did not accept user name\n");
 		return 1;
 	}
+	timeout = EAD_TIMEOUT_LONG;
 	if (!get_prime()) {
 		fprintf(stderr, "Failed to get user password info\n");
 		return 1;
 	}
-
-	timeout = EAD_TIMEOUT_LONG;
 	if (!send_a()) {
 		fprintf(stderr, "Failed to send local authentication data\n");
 		return 1;