From 0c8fdd5b20b40ae0fe9d23afc654b300f2898ce9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 9 Dec 1999 23:21:48 +0000 Subject: [PATCH] Return protocol error if reqdata was provided. --- servers/slapd/starttls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/starttls.c b/servers/slapd/starttls.c index daac4ce14f..6cee1c2964 100644 --- a/servers/slapd/starttls.c +++ b/servers/slapd/starttls.c @@ -28,6 +28,11 @@ starttls_extop ( struct berval ** rspdata, char ** text ) { + if ( reqdata != NULL ) { + /* no request data should be provided */ + return LDAP_PROTOCOL_ERROR; + } + /* can't start TLS if it is already started */ if (conn->c_is_tls != 0) return(LDAP_OPERATIONS_ERROR); -- 2.39.5