diff --git a/programs/network/downloader/downloader.asm b/programs/network/downloader/downloader.asm index 74586318ff..1f07dc89b0 100644 --- a/programs/network/downloader/downloader.asm +++ b/programs/network/downloader/downloader.asm @@ -419,7 +419,7 @@ parse_result: je .end_of_headers inc edi dec edx - jne .next_byte + ja .next_byte DEBUGF 1, "Uh-oh, there's no end of header!\n" ; no end of headers. it's an error. let client see all those headers. ret @@ -835,6 +835,10 @@ pu_010: mov eax, [eax + sockaddr_in.sin_addr] mov [server_ip], eax +; free allocated memory + push esi + call [freeaddrinfo] + DEBUGF 1, "Resolved to %u.%u.%u.%u\n", [server_ip]:1, [server_ip + 1]:1, [server_ip + 2]:1, [server_ip + 3]:1 ret