Fix possible segfault in seal_initialize 71/160671/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 17 Nov 2017 10:32:26 +0000 (11:32 +0100)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 17 Nov 2017 10:32:26 +0000 (11:32 +0100)
commit56f96a8307f1b4dc771de32bdaf5fb8b561687ba
treed527dbe07df0464a4ce66264e1efbfca49535d04
parentfd14778d5a704845c34f5add789c221abde2f594
Fix possible segfault in seal_initialize

The iv is not mandatory. It depends on bcm mode and is already checked
in this function. Don't blindly write to *iv because in some cases it
might be NULL.

Change-Id: Ieddf81b77482d2aec49d1cde3291c08d702b7c43
src/seal.c