~ubuntu-branches/ubuntu/utopic/trousers/utopic

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_daa.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:
41
41
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
42
42
                return TCSERR(TSS_E_INTERNAL_ERROR);
43
43
 
 
44
        if ((result = ctx_verify_context(hContext)))
 
45
                goto done;
 
46
 
44
47
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hDAA, 0, &data->comm))
45
48
                return TCSERR(TSS_E_INTERNAL_ERROR);
46
49
        LogDebugFn("thread %ld hDAA %x", THREAD_ID, hDAA);
124
127
                }
125
128
                free(outputData);
126
129
        } else
127
 
                initData(&data->comm, 0);
 
130
done:           initData(&data->comm, 0);
128
131
 
129
132
        data->comm.hdr.u.result = result;
130
133
        return TSS_SUCCESS;
144
147
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
145
148
                return TCSERR(TSS_E_INTERNAL_ERROR);
146
149
 
 
150
        if ((result = ctx_verify_context(hContext)))
 
151
                goto done;
 
152
 
147
153
        if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hDAA, 0, &data->comm))
148
154
                return TCSERR(TSS_E_INTERNAL_ERROR);
149
155
        LogDebugFn("thread %ld hDAA %x", THREAD_ID, hDAA);
231
237
                }
232
238
                free(outputData);
233
239
        } else
234
 
                initData(&data->comm, 0);
 
240
done:           initData(&data->comm, 0);
235
241
 
236
242
        data->comm.hdr.u.result = result;
237
243
        return TSS_SUCCESS;