downloader: print error message when DNS failed.
git-svn-id: svn://kolibrios.org@4431 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
fad1af692b
commit
5fa7166ae5
|
@ -822,9 +822,8 @@ pu_010:
|
||||||
push webAddr
|
push webAddr
|
||||||
call [getaddrinfo]
|
call [getaddrinfo]
|
||||||
pop esi
|
pop esi
|
||||||
; TODO: handle error
|
test eax, eax
|
||||||
; test eax, eax
|
jnz .fail_dns
|
||||||
; jnz .fail_dns
|
|
||||||
|
|
||||||
; fill in ip
|
; fill in ip
|
||||||
mov eax, [esi + addrinfo.ai_addr]
|
mov eax, [esi + addrinfo.ai_addr]
|
||||||
|
@ -839,6 +838,12 @@ pu_010:
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.fail_dns:
|
||||||
|
DEBUGF 1, "DNS resolution failed\n"
|
||||||
|
mov [server_ip], 0
|
||||||
|
|
||||||
|
ret
|
||||||
|
|
||||||
;***************************************************************************
|
;***************************************************************************
|
||||||
; Function
|
; Function
|
||||||
; append_proxy_auth_header
|
; append_proxy_auth_header
|
||||||
|
|
Loading…
Reference in New Issue