summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/libssh/common/g11n.c
diff options
context:
space:
mode:
authorjp161948 <none@none>2008-03-26 09:44:21 -0700
committerjp161948 <none@none>2008-03-26 09:44:21 -0700
commitee5b3c37dc989e29415b208ebafc684bddf73662 (patch)
tree245f037adb18a67964a71fdf635732d9c3fac173 /usr/src/cmd/ssh/libssh/common/g11n.c
parente688a0bc223983e7c7fedad44c92b8d0292a10f7 (diff)
downloadillumos-gate-ee5b3c37dc989e29415b208ebafc684bddf73662.tar.gz
6617424 aes192/aes256 support is missing from ssh/sshd
6674421 make cmd/ssh/include/myproposal.h cstyle clean 6674710 ssh can leave a defunct process lying around and waste a file descriptor
Diffstat (limited to 'usr/src/cmd/ssh/libssh/common/g11n.c')
-rw-r--r--usr/src/cmd/ssh/libssh/common/g11n.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/ssh/libssh/common/g11n.c b/usr/src/cmd/ssh/libssh/common/g11n.c
index 6a985db7f3..2ea20d9467 100644
--- a/usr/src/cmd/ssh/libssh/common/g11n.c
+++ b/usr/src/cmd/ssh/libssh/common/g11n.c
@@ -18,7 +18,7 @@
*
* CDDL HEADER END
*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -274,13 +274,14 @@ g11n_getlocales()
list[n_elems++] = xstrdup(locale);
}
+ (void) pclose(locale_out);
+
if (n_elems == 0) {
xfree(list);
return (NULL);
}
list[n_elems] = NULL;
- (void) pclose(locale_out);
qsort(list, n_elems - 1, sizeof (char *), locale_cmp);
return (list);