wg: argc is always 1

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-04-19 16:53:13 +02:00
parent 6a967c63a7
commit 5fab6f18d5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ int genkey_main(int argc, char *argv[])
perror("getrandom");
return 1;
}
if (argc && !strcmp(argv[0], "genkey"))
if (!strcmp(argv[0], "genkey"))
curve25519_normalize_secret(key);
key_to_base64(base64, key);