]> git.sur5r.net Git - openldap/commitdiff
Return protocol error if reqdata was provided.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 9 Dec 1999 23:21:48 +0000 (23:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 9 Dec 1999 23:21:48 +0000 (23:21 +0000)
servers/slapd/starttls.c

index daac4ce14f6062aa50a4098a323489ff6d6df328..6cee1c2964527616f365aba3453c3f1e290d4d7f 100644 (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);