Commit c4ff1dbc authored by Fin Maaß's avatar Fin Maaß Committed by Benjamin Cabé
Browse files

mgmt: hawkbit: Fix cancelAction string handling

Fix off-by-one error in cancelAction string handling.

Signed-off-by: default avatarFin Maaß <f.maass@vogl-electronic.com>
parent c79c4ef9
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/mgmt/hawkbit/hawkbit.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -638,7 +638,7 @@ static int hawkbit_find_cancel_action_id(struct hawkbit_ctl_res *res,
		return -EINVAL;
	}

	helper += sizeof("cancelAction/");
	helper += sizeof("cancelAction/") - 1;

	*cancel_action_id = strtol(helper, NULL, 10);
	if (*cancel_action_id <= 0) {