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
fc11d831
Commit
fc11d831
authored
21 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
ITS#2861 fix: don't try to dup a NULL reqdata...
parent
f047d5fc
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
servers/slapd/passwd.c
+19
-5
19 additions, 5 deletions
servers/slapd/passwd.c
with
19 additions
and
5 deletions
servers/slapd/passwd.c
+
19
−
5
View file @
fc11d831
...
...
@@ -45,8 +45,13 @@ int passwd_extop(
return
LDAP_STRONG_AUTH_REQUIRED
;
}
ber_dupbv_x
(
&
tmpbv
,
op
->
oq_extended
.
rs_reqdata
,
op
->
o_tmpmemctx
);
rs
->
sr_err
=
slap_passwd_parse
(
&
tmpbv
,
&
id
,
&
old
,
&
new
,
&
rs
->
sr_text
);
if
(
op
->
oq_extended
.
rs_reqdata
)
{
ber_dupbv_x
(
&
tmpbv
,
op
->
oq_extended
.
rs_reqdata
,
op
->
o_tmpmemctx
);
}
rs
->
sr_err
=
slap_passwd_parse
(
op
->
oq_extended
.
rs_reqdata
?
&
tmpbv
:
NULL
,
&
id
,
&
old
,
&
new
,
&
rs
->
sr_text
);
if
(
rs
->
sr_err
!=
LDAP_SUCCESS
)
{
return
rs
->
sr_err
;
}
...
...
@@ -183,7 +188,7 @@ int slap_passwd_parse( struct berval *reqdata,
{
int
rc
=
LDAP_SUCCESS
;
ber_tag_t
tag
;
ber_len_t
len
;
ber_len_t
len
=
-
1
;
BerElementBuffer
berbuf
;
BerElement
*
ber
=
(
BerElement
*
)
&
berbuf
;
...
...
@@ -201,10 +206,19 @@ int slap_passwd_parse( struct berval *reqdata,
tag
=
ber_scanf
(
ber
,
"{"
/*}*/
);
if
(
tag
!=
LBER_ERROR
)
{
tag
=
ber_peek_tag
(
ber
,
&
len
);
if
(
tag
==
LBER_ERROR
)
{
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
"slap_passwd_parse: decoding error
\n
"
,
0
,
0
,
0
);
#else
Debug
(
LDAP_DEBUG_TRACE
,
"slap_passwd_parse: decoding error
\n
"
,
0
,
0
,
0
);
#endif
rc
=
LDAP_PROTOCOL_ERROR
;
goto
done
;
}
tag
=
ber_peek_tag
(
ber
,
&
len
);
if
(
tag
==
LDAP_TAG_EXOP_MODIFY_PASSWD_ID
)
{
if
(
id
==
NULL
)
{
#ifdef NEW_LOGGING
...
...
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