mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
prevent cfg str generation from running forever (#1804)
This commit is contained in:
@@ -1334,6 +1334,8 @@ impl DefaultableWith for ValueSpecString {
|
|||||||
if &now.elapsed() > timeout {
|
if &now.elapsed() > timeout {
|
||||||
return Err(TimeoutError);
|
return Err(TimeoutError);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return Ok(Value::String(candidate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user