Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
86656182
Commit
86656182
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Fix Novell URL kludge
parent
772b458c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libldap/url.c
+12
-9
12 additions, 9 deletions
libraries/libldap/url.c
with
12 additions
and
9 deletions
libraries/libldap/url.c
+
12
−
9
View file @
86656182
...
...
@@ -228,11 +228,11 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
}
#ifndef LDAP_INT_IN_KERNEL
/* Global options may not be created yet
* We can't test if the global options are initialized
* because a call to LDAP_INT_GLOBAL_OPT() will try to allocate
* the options and cause infinite recursion
*/
/* Global options may not be created yet
* We can't test if the global options are initialized
* because a call to LDAP_INT_GLOBAL_OPT() will try to allocate
* the options and cause infinite recursion
*/
Debug
(
LDAP_DEBUG_TRACE
,
"ldap_url_parse(%s)
\n
"
,
url_in
,
0
,
0
);
#endif
...
...
@@ -247,8 +247,9 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
assert
(
scheme
);
/* make working copy of the remainder of the URL */
if
((
url
=
LDAP_STRDUP
(
url_tmp
))
==
NULL
)
{
return
(
LDAP_URL_ERR_MEM
);
url
=
LDAP_STRDUP
(
url_tmp
);
if
(
url
==
NULL
)
{
return
LDAP_URL_ERR_MEM
;
}
if
(
enclosed
)
{
...
...
@@ -295,7 +296,9 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
*
p
++
=
'\0'
;
}
if
((
q
=
strchr
(
url
,
':'
))
!=
NULL
)
{
q
=
strchr
(
url
,
':'
);
if
(
q
!=
NULL
)
{
*
q
++
=
'\0'
;
ldap_pvt_hex_unescape
(
q
);
...
...
@@ -326,7 +329,7 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
* but we need to account for it. Fortunately it can't be confused with
* anything real.
*/
if
(
(
p
==
NULL
)
&&
((
q
=
strchr
(
q
,
'?'
))
!=
NULL
))
{
if
(
(
p
==
NULL
)
&&
(
q
!=
NULL
)
&&
((
q
=
strchr
(
q
,
'?'
))
!=
NULL
))
{
q
++
;
/* ? immediately followed by question */
if
(
*
q
==
'?'
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment