diff options
author | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2012-03-09 17:44:50 +0000 |
---|---|---|
committer | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2012-03-09 17:44:50 +0000 |
commit | 111c06f8f9afa84cabb7bb9338dff013a22bcec0 (patch) | |
tree | 1eada7285d1b97b6b34772bef6702aac8bb9b913 | |
parent | fff06d738ea2dec9a821faab5ca10a240ade5461 (diff) | |
download | libproxy-111c06f8f9afa84cabb7bb9338dff013a22bcec0.tar.gz |
Fix issue 171: Argumets of dnsResolve_() are wrong
git-svn-id: http://libproxy.googlecode.com/svn/trunk@832 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | libproxy/modules/pacrunner_mozjs.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -15,6 +15,8 @@ New in version 0.4.8 (not yet released) - #160: strdup and gethostbyname not declared on OSX 10.7 - #168: .pc file should be installed under OSX as well. - #170: Also check for "Transfer-Encoding: chunked". + - #171: mozjs pacrunner: Fix parameters of dnsResolve_() + New in version 0.4.7 ============================== diff --git a/libproxy/modules/pacrunner_mozjs.cpp b/libproxy/modules/pacrunner_mozjs.cpp index b557dac..3283e91 100644 --- a/libproxy/modules/pacrunner_mozjs.cpp +++ b/libproxy/modules/pacrunner_mozjs.cpp @@ -85,7 +85,7 @@ static JSBool myIpAddress(JSContext *cx, uintN /*argc*/, jsval *vp) { if (!gethostname(hostname, 1023)) { JSString *myhost = JS_NewStringCopyN(cx, hostname, strlen(hostname)); jsval arg = STRING_TO_JSVAL(myhost); - return dnsResolve_(cx, 1, &arg); + return dnsResolve_(cx, arg, vp); } JS_free(cx, hostname); JS_SET_RVAL(cx, vp, JSVAL_NULL); |