Changeset 3620

Show
Ignore:
Timestamp:
03/12/07 23:51:52 (2 years ago)
Author:
timothy
Message:

Attempt to fix a common crash on 10.3.9 (336 reports, mostly on Panther.) http://colloquy.info/admin/crashes.html?q=CFDataGetBytePtr&r=crash_thread

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/AsyncSocket.m

    r3527 r3620  
    10611061- (UInt16) addressPort: (CFDataRef)cfaddr 
    10621062{ 
     1063        if (cfaddr == NULL) return 0; 
    10631064        struct sockaddr_in *pAddr = (struct sockaddr_in *) CFDataGetBytePtr (cfaddr); 
    10641065        return ntohs (pAddr->sin_port);