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

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_evlog.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:
39
39
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
40
40
                return TCSERR(TSS_E_INTERNAL_ERROR);
41
41
 
 
42
        if ((result = ctx_verify_context(hContext)))
 
43
                goto done;
 
44
 
42
45
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
43
46
 
44
47
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &pcrIndex, 0, &data->comm))
74
77
                        free(pEvent);
75
78
                }
76
79
        } else
77
 
                initData(&data->comm, 0);
 
80
done:           initData(&data->comm, 0);
78
81
 
79
82
        data->comm.hdr.u.result = result;
80
83
 
93
96
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
94
97
                return TCSERR(TSS_E_INTERNAL_ERROR);
95
98
 
 
99
        if ((result = ctx_verify_context(hContext)))
 
100
                goto done;
 
101
 
96
102
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
97
103
 
98
104
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &pcrIndex, 0, &data->comm))
130
136
                free_external_events(eventCount, ppEvents);
131
137
                free(ppEvents);
132
138
        } else
133
 
                initData(&data->comm, 0);
 
139
done:           initData(&data->comm, 0);
134
140
 
135
141
        data->comm.hdr.u.result = result;
136
142
 
194
200
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
195
201
                return TCSERR(TSS_E_INTERNAL_ERROR);
196
202
 
 
203
        if ((result = ctx_verify_context(hContext)))
 
204
                goto done;
 
205
 
197
206
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
198
207
 
199
208
        if (getData(TCSD_PACKET_TYPE_PCR_EVENT , 1, &event, 0, &data->comm))
207
216
                        return TCSERR(TSS_E_INTERNAL_ERROR);
208
217
                }
209
218
        } else
210
 
                initData(&data->comm, 0);
 
219
done:           initData(&data->comm, 0);
211
220
 
212
221
        data->comm.hdr.u.result = result;
213
222