]> git.tue.mpg.de Git - paraslash.git/commit
gcrypt: Always initialize result pointer.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Jul 2016 18:59:34 +0000 (20:59 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 22 Aug 2016 15:27:51 +0000 (17:27 +0200)
commitc998e827328c7989986e4fb91048e7f427f722a8
tree401d1b5987b7ab4b18fbd21bbaa9919c0b4ccdbd
parenta13a1e0d202a8969374b9a70562556e689597f2d
gcrypt: Always initialize result pointer.

If the call to mmap_full_file() at the beginning of decode_key() fails,
we return without initializing the result pointer to NULL. This does not
matter now, because the only caller of decode_key() does not look at the
pointer value in the error case. Let's be defensive here and initialize
the pointer anyway.
gcrypt.c