Fix crash if id == "base64_"

This commit is contained in:
Robin Fackler 2022-11-23 15:29:28 +01:00
parent d6544e74ff
commit f20679f24a

View File

@ -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 =