Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: src/native_client/src/trusted/service_runtime/sel_ldr.c

Issue 3076010: IMC: Remove ReturnCreatedDesc() method from effector object (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/native_client/src/trusted/service_runtime/sel_ldr.c
diff --git a/src/native_client/src/trusted/service_runtime/sel_ldr.c b/src/native_client/src/trusted/service_runtime/sel_ldr.c
index c66ead772b4fbd0e125a85ed307c88d33fed7dba..f53d2ba8c0642c1ec7339e4c68ed5502d0d56bc5 100644
--- a/src/native_client/src/trusted/service_runtime/sel_ldr.c
+++ b/src/native_client/src/trusted/service_runtime/sel_ldr.c
@@ -1001,14 +1001,12 @@ void NaClSecureCommandChannel(struct NaClApp *nap) {
/*
* this block until the plugin connects
*/
- status = ((*nap->service_port->vtbl->AcceptConn)
- (nap->service_port,
- (struct NaClDescEffector *) &nnxep));
- if (status < 0) {
+ status = (*nap->service_port->vtbl->AcceptConn)
+ (nap->service_port, &nap->secure_channel);
+ if (status != 0) {
NaClLog(LOG_FATAL,
"NaClSecureCommandChannel: unable to establish channel\n");
}
- nap->secure_channel = NaClNrdXferEffectorTakeDesc(&nnxep);
(*nnxep.base.vtbl->Dtor)((struct NaClDescEffector *) &nnxep);
/*

Powered by Google App Engine
This is Rietveld 408576698