cipher: Fix possible NULL dereference.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 14:40:48 +0000 (16:40 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 20:15:11 +0000 (22:15 +0200)
commitae1fbce6dacf14747af0126e640bd4e54cb8c680
tree6a9db333470556e45b920cd02ce2e7da745089aa
parentb76b632a453b8d100d024e2439b4358454dc286e
cipher: Fix possible NULL dereference.

* cipher/md.c (_gcry_md_selftest): Check for spec being NULL.
--

Also removed left-over code in unused file cipher/test-getrusage.c.

Found by Hans-Christoph Steiner with cppcheck.
cipher/md.c
cipher/test-getrusage.c