commit | ad18860bf40d45922dcf9c482b744d74107554f1 | [log] [tgz] |
---|---|---|
author | Jonathan Wernberg <jonathaw@axis.com> | Mon Mar 15 11:23:35 2021 +0100 |
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | Mon Mar 22 07:42:11 2021 -0700 |
tree | 16305631ed864a3cb261f3ad8e39c44278bc3b4b | |
parent | 204eef58e671cdaeed9cae9b6bfdfeb4a93840b9 [diff] |
Handle memory allocation errors too Albeit unlikely to occur in practice, according to OpenSSL documentation, NULL or -1 can be returned in case of allocation errors, so these errors must be handled for correctness. Signed-off-by: Jonathan Wernberg <jonathaw@axis.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>