From cc74b0b83bcdd2e0b8fa1a28e1ec896b4eba434a Mon Sep 17 00:00:00 2001 From: bWF0dGhpYXMK <127229721+bWF0dGhpYXMK@users.noreply.github.com> Date: Mon, 27 May 2024 09:58:54 +0200 Subject: [PATCH] v1.6: Reject call of RemoteStart.req with negative connector (#627) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Reject call of RemoteStart.req with negative connector --------- Signed-off-by: Matthias Suess Signed-off-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com> Co-authored-by: Matthias Suess Co-authored-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com> --- lib/ocpp/v16/charge_point_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ocpp/v16/charge_point_impl.cpp b/lib/ocpp/v16/charge_point_impl.cpp index 86060bc5b..c83f45c33 100644 --- a/lib/ocpp/v16/charge_point_impl.cpp +++ b/lib/ocpp/v16/charge_point_impl.cpp @@ -1666,8 +1666,8 @@ void ChargePointImpl::handleRemoteStartTransactionRequest(ocpp::Call referenced_connectors; if (call.msg.connectorId) { - if (call.msg.connectorId.value() == 0) { - EVLOG_warning << "Received RemoteStartTransactionRequest with connector id 0"; + if (call.msg.connectorId.value() <= 0) { + EVLOG_warning << "Received RemoteStartTransactionRequest with connector id <= 0"; response.status = RemoteStartStopStatus::Rejected; ocpp::CallResult call_result(response, call.uniqueId); this->send(call_result);