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
openldap
OpenLDAP
Commits
d2b6e8d5
Commit
d2b6e8d5
authored
Apr 01, 2003
by
Luke Howard
Browse files
Handle the case where slapi_x_ldapmods2modifications() returns NULL; the
modify request becomes a NOOP for the front-end in this case.
parent
92ac90c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/modify.c
View file @
d2b6e8d5
...
...
@@ -361,6 +361,20 @@ do_modify(
*/
slapi_pblock_get
(
pb
,
SLAPI_MODIFY_MODS
,
(
void
**
)
&
modv
);
modlist
=
slapi_x_ldapmods2modifications
(
modv
);
/*
* NB: it is valid for the plugin to return no modifications
* (for example, a plugin might store some attributes elsewhere
* and remove them from the modification list; if only those
* attribute types were included in the modification request,
* then slapi_x_ldapmods2modifications() above will return
* NULL).
*/
if
(
modlist
==
NULL
)
{
rs
->
sr_err
=
LDAP_SUCCESS
;
send_ldap_result
(
op
,
rs
);
goto
cleanup
;
}
#endif
/* defined( LDAP_SLAPI ) */
/*
...
...
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