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

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_own.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:
47
47
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
48
48
                return TCSERR(TSS_E_INTERNAL_ERROR);
49
49
 
 
50
        if ((result = ctx_verify_context(hContext)))
 
51
                goto done;
 
52
 
50
53
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
51
54
 
52
55
        if (getData(TCSD_PACKET_TYPE_UINT16, 1, &protocolID, 0, &data->comm))
130
133
                }
131
134
                free(srkKey);
132
135
        } else
133
 
                initData(&data->comm, 0);
 
136
done:           initData(&data->comm, 0);
134
137
 
135
138
        data->comm.hdr.u.result = result;
136
139
        return TSS_SUCCESS;
146
149
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
147
150
                return TCSERR(TSS_E_INTERNAL_ERROR);
148
151
 
 
152
        if ((result = ctx_verify_context(hContext)))
 
153
                goto done;
 
154
 
149
155
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
150
156
 
151
157
        if (getData(TCSD_PACKET_TYPE_AUTH, 1, &auth, 0, &data->comm))
163
169
                        return TCSERR(TSS_E_INTERNAL_ERROR);
164
170
                }
165
171
        } else
166
 
                initData(&data->comm, 0);
 
172
done:           initData(&data->comm, 0);
167
173
 
168
174
        data->comm.hdr.u.result = result;
169
175
        return TSS_SUCCESS;