Skip to content
Snippets Groups Projects
Commit 2875289d authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Check for active requests before trying to receive a message

parent e4ae46e5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment