Return protocol error if reqdata was provided.

This commit is contained in:
Kurt Zeilenga 1999-12-09 23:21:48 +00:00
parent 1b787171fc
commit 0c8fdd5b20

View File

@ -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);