From 99b450dc00545d93f001f45243576fbb6041f09d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 17 Nov 2005 22:45:32 +0000 Subject: [PATCH] don't accept modify operations with no modifications (ITS#4183) --- servers/slapd/modify.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 90c7d3c3a0..c4e35be7aa 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -169,6 +169,14 @@ do_modify( } *modtail = NULL; + if ( modlist == NULL ) { + Debug( LDAP_DEBUG_ANY, "do_modify: no modifications\n", 0, 0, 0 ); + send_ldap_error( op, rs, LDAP_PROTOCOL_ERROR, + "empty change secquence in modify operation" ); + + goto cleanup; + } + if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_ANY, "do_modify: get_ctrls failed\n", 0, 0, 0 ); -- 2.39.5