Fix wrong return value check of mmap function
authorTristan Bauer <67098820+trisbauer@users.noreply.github.com>
Thu, 18 Jun 2020 09:45:24 +0000 (11:45 +0200)
committerPauli <paul.dale@oracle.com>
Tue, 23 Jun 2020 00:08:28 +0000 (10:08 +1000)
commit1d78129dd205e3e85083a91c33540a70c51b0a23
tree72c856b12204a57e6e999660379eff1baa91d66e
parent3fd16304f4b33814ea481fe965d79675a5f4f2c3
Fix wrong return value check of mmap function

The mmap function never returns NULL. If an error occurs, the function returns MAP_FAILED.

CLA: trivial

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12187)
crypto/mem_sec.c