wg: argc is always 1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6a967c63a7
commit
5fab6f18d5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue