Fix infinite-retry bug

Derp, block_api clobbers ecx
This commit is contained in:
James Lee
2014-02-04 11:59:16 -06:00
parent 9c3664bd45
commit c70680cf1c
3 changed files with 29 additions and 26 deletions
@@ -75,7 +75,7 @@ got_server_uri:
set_retry:
push byte 0x10
pop ecx
pop edi
send_request:
@@ -110,7 +110,8 @@ httpsendrequest:
jnz short allocate_memory
try_it_again:
loopnz send_request
dec edi
jnz send_request
; if we didn't allocate before running out of retries, fall through to
; failure