[Bug 910] known_hosts port numbers
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Oct 6 20:04:58 EST 2005
http://bugzilla.mindrot.org/show_bug.cgi?id=910
------- Additional Comments From senthilkumar_sen at hotpop.com 2005-10-06 20:04 -------
The patch id=980 works without any problem in HP-UX. When I digged more on this
to find the corner case, I found in the patch id=946 the following code seems to
be responsible for the problem.
>if ((p = strchr(host, ':')) != NULL && strchr(p+1, ':') != NULL)
>ret = asprintf(&p, "[%s]:%hd", host, port); /* IPv6 */
>else
>ret = asprintf(&p, "%s:%hd", host, port);
This call asprintf is not supported in HP-UX libc and it is part of glibc. Even
when I used the equivalent sprintf to avoid compilation errors, it results in
coredump as said in attachment id=954. If needed I will attach the gdb backtrace
of the coredump.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list