ldb: always return PROTOCOL_ERROR if an operation is unsupported
[sfrench/samba-autobuild/.git] / source4 / lib / ldb / ldb_sqlite3 / ldb_sqlite3.c
index 2225327bbe4390a6291cec5efb5503b6a6b6f894..3aa6672964f5050b92cb43948ead23192b002f11 100644 (file)
@@ -1520,7 +1520,7 @@ static void lsql_callback(struct tevent_context *ev,
  */
        default:
                /* no other op supported */
-               ret = LDB_ERR_UNWILLING_TO_PERFORM;
+               ret = LDB_ERR_PROTOCOL_ERROR;
        }
 
        if (!ctx->callback_failed) {