Skip to content
Snippets Groups Projects
Commit 5ef9bc35 authored by rswindell's avatar rswindell
Browse files

Fixed JS_suspend/resume request bug in js_resolve_ip().

parent fe71c270
No related branches found
No related tags found
No related merge requests found
......@@ -3244,9 +3244,10 @@ js_resolve_ip(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval
return(JS_FALSE);
rc=JS_SUSPENDREQUEST(cx);
if((addr.s_addr=resolve_ip(p))==INADDR_NONE)
return(JS_TRUE);
addr.s_addr=resolve_ip(p);
JS_RESUMEREQUEST(cx, rc);
if(addr.s_addr==INADDR_NONE)
return(JS_TRUE);
if((str=JS_NewStringCopyZ(cx, inet_ntoa(addr)))==NULL)
return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment