From: Ralf Haferkamp Date: Thu, 20 Dec 2007 11:49:03 +0000 (+0000) Subject: Check for active requests before trying to receive a message X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~287 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=621099e15d70866923f0f973bc02fbc851d77e3a;p=openldap Check for active requests before trying to receive a message --- diff --git a/contrib/ldapc++/src/LDAPMessageQueue.cpp b/contrib/ldapc++/src/LDAPMessageQueue.cpp index b7afa50e16..6aed87b32b 100644 --- a/contrib/ldapc++/src/LDAPMessageQueue.cpp +++ b/contrib/ldapc++/src/LDAPMessageQueue.cpp @@ -39,6 +39,10 @@ LDAPMessageQueue::~LDAPMessageQueue(){ LDAPMsg *LDAPMessageQueue::getNext(){ DEBUG(LDAP_DEBUG_TRACE,"LDAPMessageQueue::getNext()" << endl); + if ( m_activeReq.empty() ) { + return 0; + } + LDAPRequest *req=m_activeReq.top(); LDAPMsg *ret=0;