mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-12 11:52:07 +10:00
Fix direct path override validation
This commit is contained in:
@@ -3091,8 +3091,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
|
|
||||||
if (pathLen != null &&
|
if (pathLen != null &&
|
||||||
pathLen >= 0 &&
|
pathLen >= 0 &&
|
||||||
(pathBytes == null ||
|
!_isPathLenValidForCurrentMode(
|
||||||
!_isPathLenValidForCurrentMode(pathLen, pathBytes))) {
|
pathLen,
|
||||||
|
pathBytes ?? Uint8List(0),
|
||||||
|
)) {
|
||||||
appLogger.warn(
|
appLogger.warn(
|
||||||
'setPathOverride: invalid path for ${contact.name}: '
|
'setPathOverride: invalid path for ${contact.name}: '
|
||||||
'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, '
|
'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, '
|
||||||
|
|||||||
Reference in New Issue
Block a user