summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-08-19 08:01:09 -0400
committerAdam Young <ayoung@redhat.com>2010-08-20 09:47:42 -0400
commitcee78ed04df2a1d91bebb2af6407edef29be6416 (patch)
tree4c9038dc5d305e7f8da350343e8fc68949681954 /ipa-client
parent37d302d6830ee73d6dada132210711d7c0c3b8be (diff)
downloadfreeipa-cee78ed04df2a1d91bebb2af6407edef29be6416.tar.gz
freeipa-cee78ed04df2a1d91bebb2af6407edef29be6416.tar.xz
freeipa-cee78ed04df2a1d91bebb2af6407edef29be6416.zip
const correctness
made the data type for server consistant and correct across its usage
Diffstat (limited to 'ipa-client')
-rw-r--r--ipa-client/ipa-join.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c
index 217ebce1e..d18461f6a 100644
--- a/ipa-client/ipa-join.c
+++ b/ipa-client/ipa-join.c
@@ -265,7 +265,7 @@ done:
}
static int
-get_subject(const char *ipaserver, char *ldap_base, char **subject)
+get_subject(const char *ipaserver, char *ldap_base, const char **subject)
{
LDAP *ld = NULL;
char *attrs[] = {"ipaCertificateSubjectBase", NULL};
@@ -358,7 +358,7 @@ join_ldap(const char *ipaserver, const char *hostname, const char ** binddn, con
goto done;
}
- if (get_subject(ipaserver, ldap_base, &subject) != 0) {
+ if (get_subject(ipaserver, ldap_base, subject) != 0) {
fprintf(stderr, "Unable to determine certificate subject of %s\n", ipaserver);
/* Not a critical failure */
}
@@ -441,7 +441,7 @@ ldap_done:
free(filter);
free(search_base);
free(ldap_base);
- free(subject);
+ free((void *)*subject);
if (ld != NULL) {
ldap_unbind_ext(ld, NULL, NULL);
}