Fix parsing of extraneous commas in sasl digest-md5 challenge.
This commit is contained in:
@@ -108,6 +108,8 @@ static hash_t *_parse_digest_challenge(xmpp_ctx_t *ctx, const char *msg)
|
|||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
s = text;
|
s = text;
|
||||||
while (*s != '\0') {
|
while (*s != '\0') {
|
||||||
|
/* skip any leading commas and spaces */
|
||||||
|
while ((*s == ',') || (*s == ' ')) s++;
|
||||||
/* accumulate a key ending at '=' */
|
/* accumulate a key ending at '=' */
|
||||||
t = s;
|
t = s;
|
||||||
while ((*t != '=') && (*t != '\0')) t++;
|
while ((*t != '=') && (*t != '\0')) t++;
|
||||||
|
|||||||
Reference in New Issue
Block a user