diff options
| author | Gordon Sim <gsim@apache.org> | 2013-03-12 11:03:45 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-03-12 11:03:45 +0000 |
| commit | 61929f2a04c84a3c0205e7dccaa5a1e535c149d2 (patch) | |
| tree | 86f3445daefb65be988093c9173621173d15ca79 /qpid/cpp | |
| parent | 53c95d3c8a37de0c4bacf69db721f25306c8e8e9 (diff) | |
| download | qpid-python-61929f2a04c84a3c0205e7dccaa5a1e535c149d2.tar.gz | |
QPID-4590: check management object exists before using it
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1455484 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/ManagedConnection.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/ManagedConnection.cpp b/qpid/cpp/src/qpid/broker/amqp/ManagedConnection.cpp index 0253ba5552..1574a5163f 100644 --- a/qpid/cpp/src/qpid/broker/amqp/ManagedConnection.cpp +++ b/qpid/cpp/src/qpid/broker/amqp/ManagedConnection.cpp @@ -65,12 +65,16 @@ void ManagedConnection::setUserid(const std::string& uid) void ManagedConnection::setSaslMechanism(const std::string& mechanism) { - connection->set_saslMechanism(mechanism); + if (connection) { + connection->set_saslMechanism(mechanism); + } } void ManagedConnection::setSaslSsf(int ssf) { - connection->set_saslSsf(ssf); + if (connection) { + connection->set_saslSsf(ssf); + } } qpid::management::ManagementObject::shared_ptr ManagedConnection::GetManagementObject() const |
