Skip to content
Snippets Groups Projects
Commit 0c8fdd5b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Return protocol error if reqdata was provided.

parent 1b787171
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment