diff options
Diffstat (limited to 'usr/src/lib/libnisdb/ldap_parse.c')
-rw-r--r-- | usr/src/lib/libnisdb/ldap_parse.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/usr/src/lib/libnisdb/ldap_parse.c b/usr/src/lib/libnisdb/ldap_parse.c index 20a1b4b1c9..9650ee5392 100644 --- a/usr/src/lib/libnisdb/ldap_parse.c +++ b/usr/src/lib/libnisdb/ldap_parse.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,11 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" #include <sys/types.h> #include <sys/stat.h> @@ -401,11 +399,6 @@ internal_table_name(nis_name name, char *res) * server and this is a lookup in our namespace. */ if (s) { - strcpy(res, nis_data(s)); - free((void *)s); - } else if (nis_dir_cmp(name, __nis_rpc_domain()) == SAME_NAME) { - strcpy(res, nis_data("ROOT_DIR")); - } else { return (NULL); } |