diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2005-03-15 17:42:04 +0000 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2005-03-15 17:42:04 +0000 |
| commit | 0b0b0749b3a14d2cdd8de53b864ac69cf37db1a1 (patch) | |
| tree | e0978d6f2e15fee78ee0eaab3b907a0259cc022b /ldap/admin/src/create_instance.c | |
| parent | 3d8c5863ce389c83359cb6a5e285fd535ac77e86 (diff) | |
Fixed declaration syntax error
Diffstat (limited to 'ldap/admin/src/create_instance.c')
| -rw-r--r-- | ldap/admin/src/create_instance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c index c0883542..cba7f604 100644 --- a/ldap/admin/src/create_instance.c +++ b/ldap/admin/src/create_instance.c @@ -4901,6 +4901,7 @@ int parse_form(server_config_s *cf) if (temp && !ldap_url_parse(temp, &desc) && desc) { char *suffix; + int isSSL; if (desc->lud_dn && *desc->lud_dn) { /* use given DN for netscaperoot suffix */ cf->netscaperoot = strdup(desc->lud_dn); @@ -4909,7 +4910,7 @@ int parse_form(server_config_s *cf) suffix = dn_normalize_convert(strdup(cf->netscaperoot)); } /* the config ds connection may require SSL */ - int isSSL = !strncmp(temp, "ldaps:", strlen("ldaps:")); + isSSL = !strncmp(temp, "ldaps:", strlen("ldaps:")); cf->config_ldap_url = PR_smprintf("ldap%s://%s:%d/%s", (isSSL ? "s" : ""), desc->lud_host, desc->lud_port, suffix); |
