From: Kurt Zeilenga Date: Thu, 9 Dec 1999 23:21:48 +0000 (+0000) Subject: Return protocol error if reqdata was provided. X-Git-Tag: UCDATA_2_4~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c8fdd5b20b40ae0fe9d23afc654b300f2898ce9;p=openldap Return protocol error if reqdata was provided. --- 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);