Commit 0f3d1efc authored by Niels Möller's avatar Niels Möller

tools/nettle-pbkdf2.c: Check strdup return value.

parent a7dada79
2019-04-14 Niels Möller <nisse@lysator.liu.se>
* tools/nettle-pbkdf2.c (main): Check strdup return value.
2019-03-29 Niels Möller <nisse@lysator.liu.se>
* aes.h (struct aes_ctx): Redefine using a union of key-size
......
......@@ -144,6 +144,9 @@ main (int argc, char **argv)
}
salt = strdup (argv[0]);
if (!salt)
die ("strdup failed: Virtual memory exhausted.\n");
salt_length = strlen(argv[0]);
if (hex_salt)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment