Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from ScottR-Intel/master
Browse files Browse the repository at this point in the history
Fix for seg fault in sp.cpp
  • Loading branch information
jmechalas authored Oct 1, 2020
2 parents 96f5b5c + 16c853e commit e82c1cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ int main(int argc, char *argv[])
msgio->send_partial((void *) &msg2, sizeof(sgx_ra_msg2_t));
fsend_msg_partial(fplog, (void *) &msg2, sizeof(sgx_ra_msg2_t));

msgio->send(&msg2.sig_rl, msg2.sig_rl_size);
fsend_msg(fplog, &msg2.sig_rl, msg2.sig_rl_size);
msgio->send(sigrl, msg2.sig_rl_size);
fsend_msg(fplog, sigrl, msg2.sig_rl_size);

edivider();

Expand Down Expand Up @@ -1414,7 +1414,7 @@ int get_attestation_report(IAS_Connection *ias, int version,

eprintf("advisoryURL = %s\n",
reportObj["advisoryURL"].ToString().c_str());
eprintf("advisoryIDs = %s");
eprintf("advisoryIDs = ");
/* This is a JSON array */
for(i= 0; i< reportObj["advisoryIDs"].length(); ++i) {
eprintf("%s%s", (i)?",":"", reportObj["advisoryIDs"][i].ToString().c_str());
Expand Down

0 comments on commit e82c1cd

Please sign in to comment.