Skip to content

Commit ec1fa6a

Browse files
committed
fixed getByAddress method signature
1 parent 536bfcc commit ec1fa6a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cSploitClient/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int init_java_net_inetaddress_cache(JNIEnv *env) {
172172
return -1;
173173

174174
c->getByAddress = (*env)->GetStaticMethodID(env, c->class,
175-
"getByAddress", "(Ljava/lang/String;[BI)Ljava/net/InetAddress;");
175+
"getByAddress", "(Ljava/lang/String;[B)Ljava/net/InetAddress;");
176176

177177
if(!c->getByAddress) goto error;
178178

cSploitClient/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobject inaddr_to_inetaddress(JNIEnv *env, in_addr_t a) {
172172
(*env)->SetByteArrayRegion(env, ary, 0, sizeof(a), (const jbyte *) &a);
173173

174174
res = (*env)->CallStaticObjectMethod(env, cache.java.net.inetaddress.class,
175-
cache.java.net.inetaddress.getByAddress, NULL, ary, 0);
175+
cache.java.net.inetaddress.getByAddress, NULL, ary);
176176

177177
(*env)->DeleteLocalRef(env, ary);
178178

0 commit comments

Comments
 (0)