diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-06-05 20:15:19 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-06-05 20:15:19 +0000 |
commit | a752fb12d375c9eb0581e72a97b276ea7ecc540e (patch) | |
tree | 29997b3d44f69124fce7cd6f05a4841fce1230ca /nslcd/common.c | |
parent | 8d25c3f2a4bca981e23138c1b960b4da99e1d788 (diff) |
mark more strings as const and don't free() data returned by cfg_getdomainname()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1473 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.c')
-rw-r--r-- | nslcd/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/common.c b/nslcd/common.c index 921976c..cb94c2f 100644 --- a/nslcd/common.c +++ b/nslcd/common.c @@ -99,7 +99,7 @@ const char *getfqdn(void) (host->h_aliases[i][hostnamelen]=='.')&& (host->h_aliases[i][hostnamelen+1]!='\0')) { - fqdn=host->h_aliases[i]; + fqdn=strdup(host->h_aliases[i]); return fqdn; } } |