diff options
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); |
