Changeset 6425 for trunk/licq

Show
Ignore:
Timestamp:
07/05/08 01:31:35 (5 months ago)
Author:
flynd
Message:

Socket owner may be null so check before use.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/icqd-threads.cpp

    r6411 r6425  
    735735        { 
    736736          INetSocket *s = gSocketManager.FetchSocket(nCurrentSocket); 
    737           if (s != NULL && s->OwnerId() == gUserManager.OwnerId(LICQ_PPID) && 
     737          if (s != NULL && s->OwnerId() != NULL && 
     738              s->OwnerId() == gUserManager.OwnerId(LICQ_PPID) && 
    738739              d->m_nTCPSrvSocketDesc == -1) 
    739740          {