This patch handles the case where the server sends its list of features, but the <bind> feature is missing.
A server doing so is violating RFC6120 (c.f. [0]), but it happened in [1]. Previously we ended up in a segfault, now we terminate the connection.
Reproducing this was done with netcat and profanity:
This patch handles the case where the server sends its list of features, but the
<bind>
feature is missing. A server doing so is violating RFC6120 (c.f. [0]), but it happened in [1]. Previously we ended up in a segfault, now we terminate the connection.Reproducing this was done with netcat and profanity:
[0] https://datatracker.ietf.org/doc/html/rfc6120#section-7.2 [1] https://github.com/profanity-im/profanity/issues/1849