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:09:24 +0000 (10:09 +1000)
commitb295a4dca17f00d412043b74393b86a16655fac0
tree5abccfc131896dc2d31480297e7d129261c9d6cd
parent35bb0e44c6168facbb3acedbc7d4f2dcbdd65224
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)

(cherry picked from commit 1d78129dd205e3e85083a91c33540a70c51b0a23)
crypto/mem_sec.c