diff options
| author | Gordon Sim <gsim@apache.org> | 2012-11-14 11:21:18 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-11-14 11:21:18 +0000 |
| commit | 0e87dbcfe3b227b212b7015085b4c9f6a96acceb (patch) | |
| tree | 3f38f1dfce5c3ff7495614e77d3a87957ee37851 /qpid/cpp/src | |
| parent | 5e510a9d8ba5fb522a31eeb5c3feb18eeea2f279 (diff) | |
| download | qpid-python-0e87dbcfe3b227b212b7015085b4c9f6a96acceb.tar.gz | |
NO-JIRA: Fail on invalid PLAIN request
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1409161 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/NullSaslServer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/NullSaslServer.cpp b/qpid/cpp/src/qpid/NullSaslServer.cpp index 8f415ba3ba..40bd9ebbc6 100644 --- a/qpid/cpp/src/qpid/NullSaslServer.cpp +++ b/qpid/cpp/src/qpid/NullSaslServer.cpp @@ -39,7 +39,10 @@ NullSaslServer::Status NullSaslServer::start(const std::string& mechanism, const } else if (i != std::string::npos) { //authorization id is first null delimited field uid = response->substr(0, i); - }//else not a valid SASL PLAIN response, throw error? + } else { + QPID_LOG(error, "Invalid PLAIN request, null delimiter not found in response data"); + return FAIL; + } if (!uid.empty()) { //append realm if it has not already been added i = uid.find(realm); |
