From a6e0e77db3495a73e0c084496fedccf16413a311 Mon Sep 17 00:00:00 2001 From: jp161948 Date: Mon, 13 Nov 2006 15:06:43 -0800 Subject: 6432078 SUNWsshdu should depend on SUNWloc 6432083 sshd dumps core if /usr/bin/locale is missing or gives an empty output 6470249 ssh support for X forwarding is broken 6484979 typo in 'frunction' in cmd/ssh/libssh/common/log.c --- usr/src/cmd/ssh/libssh/common/g11n.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/src/cmd/ssh/libssh/common/g11n.c') diff --git a/usr/src/cmd/ssh/libssh/common/g11n.c b/usr/src/cmd/ssh/libssh/common/g11n.c index 41116d2c1e..95b61bef62 100644 --- a/usr/src/cmd/ssh/libssh/common/g11n.c +++ b/usr/src/cmd/ssh/libssh/common/g11n.c @@ -270,6 +270,9 @@ g11n_getlocales() list[n_elems++] = xstrdup(locale); } + if (n_elems == 0) + return (NULL); + list[n_elems] = NULL; (void) pclose(locale_out); -- cgit v1.2.3