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 | b4edba8bc262f285fbe44ec2fb21b7b46ec8fedf (patch) | |
| tree | f546e243f4d07fe173814fd00bf65b31e948bb62 /cpp | |
| parent | e0340255d82fc032b9fed887f7185af8a9458e21 (diff) | |
| download | qpid-python-b4edba8bc262f285fbe44ec2fb21b7b46ec8fedf.tar.gz | |
QPID-4590: check management object exists before using it
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1455484 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/broker/amqp/ManagedConnection.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/amqp/ManagedConnection.cpp b/cpp/src/qpid/broker/amqp/ManagedConnection.cpp index 0253ba5552..1574a5163f 100644 --- a/cpp/src/qpid/broker/amqp/ManagedConnection.cpp +++ b/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 |
