Skip to content
Snippets Groups Projects
Commit ab4eca0e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix misplaced JS_RESUMEREQUEST() - do thise *before* potential return

parent 45ac9016
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -2543,9 +2543,9 @@ static JSBool js_socket_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
break;
case SOCK_PROP_FAMILY:
if(p->sock != INVALID_SOCKET) {
JS_RESUMEREQUEST(cx, rc);
if(getsockname(p->sock, &addr.addr, &len)!=0)
return(JS_FALSE);
JS_RESUMEREQUEST(cx, rc);
*vp = INT_TO_JSVAL(addr.addr.sa_family);
rc=JS_SUSPENDREQUEST(cx);
}
......
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