From 5fa7166ae5197960b98f646c87f59877041650b8 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Wed, 8 Jan 2014 18:44:09 +0000 Subject: [PATCH] downloader: print error message when DNS failed. git-svn-id: svn://kolibrios.org@4431 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/downloader/downloader.asm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/programs/network/downloader/downloader.asm b/programs/network/downloader/downloader.asm index 16b860b591..2545782467 100644 --- a/programs/network/downloader/downloader.asm +++ b/programs/network/downloader/downloader.asm @@ -822,9 +822,8 @@ pu_010: push webAddr call [getaddrinfo] pop esi -; TODO: handle error -; test eax, eax -; jnz .fail_dns + test eax, eax + jnz .fail_dns ; fill in ip mov eax, [esi + addrinfo.ai_addr] @@ -839,6 +838,12 @@ pu_010: ret + .fail_dns: + DEBUGF 1, "DNS resolution failed\n" + mov [server_ip], 0 + + ret + ;*************************************************************************** ; Function ; append_proxy_auth_header