From 3362805ffb92452a82b6ca5866377cd85fae764f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 2 Jun 2010 21:05:43 +0200
Subject: Serialize <success/> stanza correctly.


diff --git a/Swiften/Serializer/AuthSuccessSerializer.cpp b/Swiften/Serializer/AuthSuccessSerializer.cpp
index 44fa709..f27b2cb 100644
--- a/Swiften/Serializer/AuthSuccessSerializer.cpp
+++ b/Swiften/Serializer/AuthSuccessSerializer.cpp
@@ -17,7 +17,7 @@ AuthSuccessSerializer::AuthSuccessSerializer() {
 String AuthSuccessSerializer::serialize(boost::shared_ptr<Element> element)  const {
 	boost::shared_ptr<AuthSuccess> authRequest(boost::dynamic_pointer_cast<AuthSuccess>(element));
 	String value = (authRequest->getValue().isEmpty() ? "=" : Base64::encode(authRequest->getValue()));
-	return "<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">" + value + "</challenge>";
+	return "<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">" + value + "</success>";
 }
 
 }
-- 
cgit v0.10.2-6-g49f6