Skip to content

Commit

Permalink
[#241] Remove tracking comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown2 committed May 29, 2024
1 parent 090a056 commit b7b0806
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/sa/mariadb/sa_interface_mariadb.template.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ static int32_t parse_sa_from_mysql_query(char* query, SecurityAssociation_t** se
} else // Cryptography Type KMC Crypto Service with PKCS12 String Key References
{
sa->ekid = 0;
//sa->ek_ref = malloc((strlen(row[i])+1) * sizeof(char));
memcpy(sa->ek_ref, row[i], strlen(row[i])+1);
}
continue;
Expand All @@ -391,7 +390,6 @@ static int32_t parse_sa_from_mysql_query(char* query, SecurityAssociation_t** se
sa->akid = atoi(row[i]);
} else // Cryptography Type KMC Crypto Service with PKCS12 String Key References
{
//sa->ak_ref = malloc((strlen(row[i])+1) * sizeof(char));
memcpy(sa->ak_ref, row[i], strlen(row[i])+1);
}
continue;
Expand Down
2 changes: 0 additions & 2 deletions test/kmc/ut_mariadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ void cleanup_sa(SecurityAssociation_t* test_association)
{
if (test_association->ek_ref[0] != '\0')
clean_ek_ref(test_association);
// free(test_association->ek_ref);
if (test_association->ak_ref[0] != '\0')
clean_ak_ref(test_association);
// free(test_association->ak_ref);

free(test_association);
}
Expand Down

0 comments on commit b7b0806

Please sign in to comment.