Fix a 'tip' core dump caused by a null pointer dereference when
sending a file to the remote system. PR: bin/15660 Reviewed by: jkh Approved by: jkh
This commit is contained in:
parent
3645fc1c45
commit
b75ebc058c
@ -513,7 +513,7 @@ transmit(fd, eofchars, command)
|
||||
out:
|
||||
if (lastc != '\n' && !boolean(value(RAWFTP)))
|
||||
send('\r');
|
||||
for (pc = eofchars; *pc; pc++)
|
||||
for (pc = eofchars; pc && *pc; pc++)
|
||||
send(*pc);
|
||||
stop_t = time(0);
|
||||
fclose(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user