Correct an issue where the wrong type was being used to start sasl.
authorJason Parker <jparker@digium.com>
Tue, 3 Jul 2007 02:51:08 +0000 (02:51 +0000)
committerJason Parker <jparker@digium.com>
Tue, 3 Jul 2007 02:51:08 +0000 (02:51 +0000)
Pointed out by and patch provided by mog.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 78ff7d9..2520f02 100644 (file)
@@ -523,7 +523,7 @@ static int aji_start_sasl(iksparser *prs, enum ikssasltype type, char *username,
        char *base64;
 
        if (type == IKS_STREAM_SASL_MD5)
-               return iks_start_sasl(prs, type, username, pass);
+               return iks_start_sasl(prs, IKS_SASL_DIGEST_MD5, username, pass);
 
        x = iks_new("auth"); 
        if (!x) {