Skip to content
Snippets Groups Projects
Commit 0f3d1efc authored by Niels Möller's avatar Niels Möller
Browse files

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

parent a7dada79
No related branches found
No related tags found
No related merge requests found
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment