Fix parsing of extraneous commas in sasl digest-md5 challenge.

This commit is contained in:
James Canete
2007-07-25 01:53:04 +00:00
parent 9d25e25002
commit cde69ffce4

View File

@@ -108,6 +108,8 @@ static hash_t *_parse_digest_challenge(xmpp_ctx_t *ctx, const char *msg)
if (result != NULL) {
s = text;
while (*s != '\0') {
/* skip any leading commas and spaces */
while ((*s == ',') || (*s == ' ')) s++;
/* accumulate a key ending at '=' */
t = s;
while ((*t != '=') && (*t != '\0')) t++;