diff options
Diffstat (limited to 'lace_x86.asm')
-rw-r--r-- | lace_x86.asm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lace_x86.asm b/lace_x86.asm index 687b8e0..12fc1b0 100644 --- a/lace_x86.asm +++ b/lace_x86.asm @@ -80,8 +80,6 @@ _start: mov bl, 1 jl exit - sub esp, 16 ; alloc struct sockaddr_in - mov dl, 16 ; read(argv[1], sockaddr, sizeof(sockaddr)) mov ecx, esp mov ebx, eax @@ -113,10 +111,8 @@ _start: mov bl, 3 jne exit - pop edi ; recover socket fd - sub esp, 0xff ; alloc data buffer - xor esi, esi ; pipe(sock_fd, stdin) + pop edi call pipe inc esi ; pipe(stdout, sock_fd) |