wg: argc is always 1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6a967c63a7
commit
5fab6f18d5
|
@ -50,7 +50,7 @@ int genkey_main(int argc, char *argv[])
|
||||||
perror("getrandom");
|
perror("getrandom");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (argc && !strcmp(argv[0], "genkey"))
|
if (!strcmp(argv[0], "genkey"))
|
||||||
curve25519_normalize_secret(key);
|
curve25519_normalize_secret(key);
|
||||||
|
|
||||||
key_to_base64(base64, key);
|
key_to_base64(base64, key);
|
||||||
|
|
Reference in New Issue