Check for active requests before trying to receive a message

This commit is contained in:
Ralf Haferkamp 2007-12-20 11:49:03 +00:00
parent 84e87f3912
commit 621099e15d

View File

@ -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;