mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Return protocol error if reqdata was provided.
This commit is contained in:
parent
1b787171fc
commit
0c8fdd5b20
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user