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

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