Rev 3813 | Rev 3818 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3813 | Rev 3814 | ||
---|---|---|---|
Line 269... | Line 269... | ||
269 | ; find end of string |
269 | ; find end of string |
270 | mov edi, s+5 |
270 | mov edi, s+5 |
271 | mov ecx, 256 |
271 | mov ecx, 256 |
272 | xor al, al |
272 | xor al, al |
273 | repne scasb |
273 | repne scasb |
274 | lea esi, [edi-s-1] |
274 | lea esi, [edi-s] |
- | 275 | mov word[edi-2], 0x0a0d |
|
275 | ; and send it to the server |
276 | ; and send it to the server |
276 | mcall send, [socketnum], s, , 0 |
277 | mcall send, [socketnum], s, , 0 |
Line 277... | Line 278... | ||
277 | 278 | ||
278 | invoke con_write_asciiz, str_newline |
279 | invoke con_write_asciiz, str_newline |
Line 284... | Line 285... | ||
284 | open_dataconnection: ; only passive for now.. |
285 | open_dataconnection: ; only passive for now.. |
285 | cmp [status], STATUS_LOGGED_IN |
286 | cmp [status], STATUS_LOGGED_IN |
286 | jne .fail |
287 | jne .fail |
Line 287... | Line 288... | ||
287 | 288 | ||
288 | mov dword[s], "PASV" |
289 | mov dword[s], "PASV" |
289 | mov byte[s+4], 10 |
290 | mov word[s+4], 0x0a0d |
290 | mcall send, [socketnum], s, 5, 0 |
291 | mcall send, [socketnum], s, 6, 0 |
Line 291... | Line 292... | ||
291 | ret |
292 | ret |
292 | 293 | ||
293 | .fail: |
294 | .fail: |