Changeset 3761


Ignore:
Timestamp:
Sep 21, 2011 4:54:27 AM (8 years ago)
Author:
bennylp
Message:

Fixed sockaddr address comparison error with memcmp, and use pj_sockaddr_cmp() instead. Thanks Howard Lin for the report (misc, re #1252)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/src/pjlib-test/sock.c

    r3553 r3761  
    511511        if (srclen != addrlen) 
    512512            return -151; 
    513         if (pj_memcmp(&addr, srcaddr, srclen) != 0) { 
     513        if (pj_sockaddr_cmp(&addr, srcaddr) != 0) { 
    514514            char srcaddr_str[32], addr_str[32]; 
    515515            strcpy(srcaddr_str, pj_inet_ntoa(srcaddr->sin_addr)); 
Note: See TracChangeset for help on using the changeset viewer.