~ubuntu-branches/ubuntu/vivid/trousers/vivid

« back to all changes in this revision

Viewing changes to src/tspi/tspi_quote.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-11-10 17:04:44 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121110170444-yvoa372npyp02mwr
Tags: 0.3.10-1
* Imported Upstream version 0.3.10
* Update symbols file
* Force build of tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        if (hPcrComposite) {
126
126
                TCPA_PCR_COMPOSITE pcrComp;
127
127
 
 
128
                memset(&pcrComp, 0, sizeof(pcrComp)); 
128
129
                offset = 0;
129
130
                if ((result = Trspi_UnloadBlob_PCR_COMPOSITE(&offset, pcrDataOut, &pcrComp))) {
130
131
                        free(pcrDataOut);
 
132
                        free(pcrComp.pcrValue);
 
133
                        free(pcrComp.select.pcrSelect);
131
134
                        free(validationData);
132
135
                        return result;
133
136
                }
134
137
 
135
138
                if ((result = obj_pcrs_set_values(hPcrComposite, &pcrComp))) {
136
139
                        free(pcrDataOut);
 
140
                        free(pcrComp.pcrValue);
 
141
                        free(pcrComp.select.pcrSelect);
137
142
                        free(validationData);
138
143
                        return result;
139
144
                }
 
145
 
 
146
                free(pcrComp.pcrValue);
 
147
                free(pcrComp.select.pcrSelect);
140
148
        }
141
149
 
142
150
        if ((result = Tspi_GetAttribData(hIdentKey, TSS_TSPATTRIB_KEY_BLOB,