The compiler was indicating that the request.len and
request.bytes maybe used uninitialized. Best I can
tell the OCByteString is initilaized in the GenerateCSR
function. The compiler can not tell that it is
initilaized so it is zero initialized at creation.
Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: I19dd9818b1485ec0da64b48dc2510c8e939c6c0f
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21703
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit
88ce2816c8cca2f775927a03b2843446cc743e6d)
OIC_LOG_V(DEBUG, TAG, "Certificate Request subject: %s", subject);
- OCByteString request;
+ OCByteString request = { 0 };
if (0 != GenerateCSR(subject, &request))
{
OIC_LOG(ERROR, TAG, "Cann't get the sertificate request");