mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 08:58:52 +00:00
Fix crash if id == "base64_"
This commit is contained in:
parent
d6544e74ff
commit
f20679f24a
1 changed files with 1 additions and 1 deletions
|
|
@ -931,7 +931,7 @@ impl PeerConfig {
|
|||
.to_owned();
|
||||
|
||||
let id_decoded_string: String;
|
||||
if id.starts_with("base64_") {
|
||||
if id.starts_with("base64_") && id != "base64_" {
|
||||
let id_decoded = base64::decode(&id[7..], base64::Variant::Original)
|
||||
.unwrap_or(Vec::new());
|
||||
id_decoded_string =
|
||||
|
|
|
|||
Loading…
Reference in a new issue