mturk 2005/06/09 03:44:06
Modified: jni/native/src ssl.c
Log:
Release the byte array elements with JNI_ABORT, because we
are not interested in copying the data back from the write call.
Revision Changes Path
1.31 +2 -1 jakarta-tomcat-connectors/jni/native/src/ssl.c
Index: ssl.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/ssl.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ssl.c 9 Jun 2005 10:24:53 -0000 1.30
+++ ssl.c 9 Jun 2005 10:44:06 -0000 1.31
@@ -556,6 +556,7 @@
(*e)->SetByteArrayRegion(e, jb, 0, inl, (jbyte *)in);
ret = (*e)->CallIntMethod(e, j->cb.obj,
j->cb.mid[0], jb);
+ (*e)->ReleaseByteArrayElements(e, jb, (jbyte *)in, JNI_ABORT);
(*e)->DeleteLocalRef(e, jb);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]