summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-11-27 00:48:40 +0100
committerlouiz’ <louiz@louiz.org>2017-11-27 00:48:40 +0100
commit5b27cee97272d4ae6ff30f03dc57221fa3e3183f (patch)
tree384cdd85b532bb47c8480103e098f6b8b46a2c39
parentb82d662082f95e5cab8b486fe26b2e263d4a66cc (diff)
downloadbiboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.gz
biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.bz2
biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.xz
biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.zip
Send \r\n at the end of the identd responses
fix #3315
-rw-r--r--src/identd/identd_socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identd/identd_socket.cpp b/src/identd/identd_socket.cpp
index b85257c..92cd80b 100644
--- a/src/identd/identd_socket.cpp
+++ b/src/identd/identd_socket.cpp
@@ -50,14 +50,14 @@ std::string IdentdSocket::generate_answer(const BiboumiComponent& biboumi, uint1
if (pair.second->match_port_pairt(local, remote))
{
std::ostringstream os;
- os << local << " , " << remote << " : USERID : OTHER : " << hash_jid(bridge->get_bare_jid());
+ os << local << " , " << remote << " : USERID : OTHER : " << hash_jid(bridge->get_bare_jid()) << "\r\n";
log_debug("Identd, sending: ", os.str());
return os.str();
}
}
}
std::ostringstream os;
- os << local << " , " << remote << " ERROR : NO-USER";
+ os << local << " , " << remote << " ERROR : NO-USER" << "\r\n";
log_debug("Identd, sending: ", os.str());
return os.str();
}