Be more careful when parsing arguments.
PR: 45476 MFC after: 5 days
This commit is contained in:
parent
48261862cd
commit
15c7fa3d74
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user