Be more careful when parsing arguments.

PR:		45476
MFC after:	5 days
This commit is contained in:
eric 2002-11-20 17:59:20 +00:00
parent 48261862cd
commit 15c7fa3d74

View File

@ -2026,8 +2026,12 @@ tn(int argc, char *argv[])
#endif
(hostname = strrchr(hostp, ':')) == NULL)
hostname = strrchr(hostp, '@');
hostname++;
srcroute = 1;
if (hostname == NULL) {
hostname = hostp;
} else {
hostname++;
srcroute = 1;
}
} else
hostname = hostp;
if (!portp) {