commit | fbc745cd2895ed98342a7df508eb73882742ecd5 | [log] [tgz] |
---|---|---|
author | Patrick Wildt <patrick@blueri.se> | Thu May 07 02:17:14 2020 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Thu May 07 18:23:17 2020 +0200 |
tree | 5d85feacbdbb146ba4d34c4d330b6dbe4401d2cc | |
parent | cd8a55ba31e9cef2b312072a6988768d3b4aa558 [diff] |
efi_loader: pkcs7_parse_message() returns error pointer Since pkcs7_parse_message() returns an error pointer, we must not check for NULL. We have to explicitly set msg to NULL in the error case, otherwise the call to pkcs7_free_message() on the goto err path will assume it's a valid object. Signed-off-by: Patrick Wildt <patrick@blueri.se> Add missing include linux/err.h Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>