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:
Brian S. Dean 2000-02-22 02:01:17 +00:00
parent 3645fc1c45
commit b75ebc058c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57386

View File

@ -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);