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

Don't log an error when JS resolve_ip() fails

e.g. don't log the error "term !ERROR resolve_ip example.com failed with error -2", just let the script deal with the failure and log an error if it wishes.
parent b16b7a4f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -4055,7 +4055,6 @@ js_resolve_ip(JSContext *cx, uintN argc, jsval *arglist) ...@@ -4055,7 +4055,6 @@ js_resolve_ip(JSContext *cx, uintN argc, jsval *arglist)
hints.ai_socktype = SOCK_STREAM; hints.ai_socktype = SOCK_STREAM;
rc=JS_SUSPENDREQUEST(cx); rc=JS_SUSPENDREQUEST(cx);
if((result=getaddrinfo(p, NULL, &hints, &res))!=0) { if((result=getaddrinfo(p, NULL, &hints, &res))!=0) {
lprintf(LOG_ERR, "!ERROR resolve_ip %s failed with error %d",p, result);
JS_RESUMEREQUEST(cx, rc); JS_RESUMEREQUEST(cx, rc);
free(p); free(p);
return JS_TRUE; return JS_TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment