Check error return from sysconf in secure memory code
authorMatt Caswell <matt@openssl.org>
Thu, 12 Nov 2015 15:11:34 +0000 (15:11 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Nov 2015 11:23:51 +0000 (11:23 +0000)
commit9ae720b4dc30ab52b20965c5d6f60ecc6169b8c8
tree6ca543d5729bfb519ff71f1f58c7418890252601
parentae4d0c8d227d0cf4f9f3f7a5d07189c0a18b25fc
Check error return from sysconf in secure memory code

We use the sysconf function to provide details about the page size in the
secure memory code. This function can return -1 on error so we should check
for this before proceeding.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/sec_mem.c