changeset 13206:0c4db52c6a3d

[gaim-migrate @ 15569] Simon (Wilkinson) says: fix SASL committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 09 Feb 2006 14:06:10 +0000
parents 76c66b7e1327
children 8facf33a528a
files src/protocols/jabber/auth.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c	Thu Feb 09 07:47:32 2006 +0000
+++ b/src/protocols/jabber/auth.c	Thu Feb 09 14:06:10 2006 +0000
@@ -192,14 +192,16 @@
 	/* Set up security properties and options */
 	secprops.min_ssf = 0;
 	secprops.security_flags = SASL_SEC_NOANONYMOUS;
-	secprops.max_ssf = -1;
-	secprops.maxbufsize = -1;
 
 	if (!js->gsc) {
+		secprops.max_ssf = -1;
+		secprops.maxbufsize = 4096;
 		plaintext = gaim_account_get_bool(js->gc->account, "auth_plain_in_clear", FALSE);
 		if (!plaintext)
 			secprops.security_flags |= SASL_SEC_NOPLAINTEXT;
 	} else {
+		secprops.max_ssf = 0;
+		secprops.maxbufsize = 0;
 		plaintext = TRUE;
 	}
 	secprops.property_names = 0;