summaryrefslogtreecommitdiff
path: root/plugins/sudoers/ldap_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/ldap_conf.c')
-rw-r--r--plugins/sudoers/ldap_conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sudoers/ldap_conf.c b/plugins/sudoers/ldap_conf.c
index 38d54a3a3..7e4a2e3ad 100644
--- a/plugins/sudoers/ldap_conf.c
+++ b/plugins/sudoers/ldap_conf.c
@@ -242,7 +242,8 @@ sudo_ldap_parse_uri(const struct ldap_config_str_list *uri_list)
hostbuf[0] = '\0';
STAILQ_FOREACH(entry, uri_list, entries) {
- char *cp, *host, *last, *port, *uri;
+ char *cp, *last, *uri;
+ const char *host, *port;
buf = strdup(entry->val);
if (buf == NULL) {