From 111c06f8f9afa84cabb7bb9338dff013a22bcec0 Mon Sep 17 00:00:00 2001 From: "dominique.leuenberger@gmail.com" Date: Fri, 9 Mar 2012 17:44:50 +0000 Subject: Fix issue 171: Argumets of dnsResolve_() are wrong git-svn-id: http://libproxy.googlecode.com/svn/trunk@832 c587cffe-e639-0410-9787-d7902ae8ed56 --- NEWS | 2 ++ libproxy/modules/pacrunner_mozjs.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4fa57b8..c45b27e 100644 --- a/NEWS +++ b/NEWS @@ -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); -- cgit v1.2.1