Fix direct path override validation
This commit is contained in:
1 parent
a15f5e94da
commit
c46a5ffa2f
1 file changed
+4
-2
@@ -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