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

« back to all changes in this revision

Viewing changes to src/tcs/rpc/tcstp/rpc_auth.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:
38
38
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
39
39
                return TCSERR(TSS_E_INTERNAL_ERROR);
40
40
 
 
41
        if ((result = ctx_verify_context(hContext)))
 
42
                goto done;
 
43
 
41
44
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
42
45
 
43
46
        MUTEX_LOCK(tcsp_lock);
55
58
                        return TCSERR(TSS_E_INTERNAL_ERROR);
56
59
                }
57
60
        } else
58
 
                initData(&data->comm, 0);
 
61
done:           initData(&data->comm, 0);
59
62
 
60
63
        data->comm.hdr.u.result = result;
61
64
        return TSS_SUCCESS;
77
80
        if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
78
81
                return TCSERR(TSS_E_INTERNAL_ERROR);
79
82
 
 
83
        if ((result = ctx_verify_context(hContext)))
 
84
                goto done;
 
85
 
80
86
        LogDebugFn("thread %ld context %x", THREAD_ID, hContext);
81
87
 
82
88
        if (getData(TCSD_PACKET_TYPE_UINT16, 1, &entityType, 0, &data->comm))
105
111
                        return TCSERR(TSS_E_INTERNAL_ERROR);
106
112
                }
107
113
        } else
108
 
                initData(&data->comm, 0);
 
114
done:           initData(&data->comm, 0);
109
115
 
110
116
        data->comm.hdr.u.result = result;
111
117