Changeset 2106


Ignore:
Timestamp:
Jul 7, 2008 2:03:29 PM (16 years ago)
Author:
bennylp
Message:

Fixed segfault when getifaddrs() returns NULL address (thanks Filippo Zangheri)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ip_helper_generic.c

    r2039 r2106  
    9191        } 
    9292 
     93        if (ad==NULL) { 
     94            TRACE_((THIS_FILE, "  NULL address ignored")); 
     95            continue; /* reported to happen on Linux 2.6.25.9 */ 
     96        } 
     97 
    9398        if (ad->sa_family != af) { 
    9499            TRACE_((THIS_FILE, "  address %s ignored (af=%d)",  
Note: See TracChangeset for help on using the changeset viewer.