Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Dubner
OpenLDAP
Commits
46f62514
Commit
46f62514
authored
Jan 23, 2020
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jan 23, 2020
Browse files
ITS#9126 Add a missed normalised copy of pwdChangedTime
parent
a5a890ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/ppolicy.c
View file @
46f62514
...
...
@@ -2107,10 +2107,11 @@ do_modify:
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
mods
->
sml_op
=
LDAP_MOD_REPLACE
;
mods
->
sml_numvals
=
1
;
mods
->
sml_values
=
(
BerVarray
)
ch_malloc
(
2
*
sizeof
(
struct
berval
)
);
mods
->
sml_values
=
(
BerVarray
)
ch_calloc
(
sizeof
(
struct
berval
),
2
);
mods
->
sml_nvalues
=
(
BerVarray
)
ch_calloc
(
sizeof
(
struct
berval
),
2
);
ber_dupbv
(
&
mods
->
sml_values
[
0
],
&
timestamp
);
BER_BVZERO
(
&
mods
->
sml_values
[
1
]
);
assert
(
!
BER_BVISNULL
(
&
mods
->
sml_values
[
0
]
)
);
ber_dupbv
(
&
mods
->
sml_nvalues
[
0
],
&
timestamp
);
}
else
if
(
attr_find
(
e
->
e_attrs
,
ad_pwdChangedTime
))
{
mods
=
(
Modifications
*
)
ch_calloc
(
sizeof
(
Modifications
),
1
);
mods
->
sml_op
=
LDAP_MOD_DELETE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment