summaryrefslogtreecommitdiffstats
path: root/src/stanza/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stanza/stream.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs
index 66741b8..f85166f 100644
--- a/src/stanza/stream.rs
+++ b/src/stanza/stream.rs
@@ -175,7 +175,11 @@ impl<'e> TryFrom<Element<'e>> for Vec<StreamFeature> {
}
features.push(StreamFeature::Sasl(mechanisms))
}
- _ => {}
+ _ => features.push(StreamFeature::Unknown),
+ },
+ Event::Empty(e) => match e.name() {
+ QName(b"bind") => features.push(StreamFeature::Bind),
+ _ => features.push(StreamFeature::Unknown),
},
_ => features.push(StreamFeature::Unknown),
}