ead: allow a longer timeout in the client for the prime number calculation (useful...
[openwrt/svn-archive/archive.git] / package / ead / src / ead-client.c
index 7f462c180a1ce5de3e4ef9db8001ab73cb73b53c..54d8b1343f63107bc661e6d62426f9f356962185 100644 (file)
@@ -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;