The NULL ptr reference could occur if two or more new client was
checked for number of sockets . In this case host in Z39.50 Assoc
would be NULL - prior to call to method 'client'.
for (; it != m_clients.end(); it++)
{
yf::Z3950Client::Assoc *as = it->second;
for (; it != m_clients.end(); it++)
{
yf::Z3950Client::Assoc *as = it->second;
- if (!strcmp(as->get_hostname(), host.c_str()))
+ if (!strcmp(as->m_host.c_str(), host.c_str()))
{
number++;
if (!as->m_in_use)
{
number++;
if (!as->m_in_use)