Changeset 5311 for pjproject/trunk/pjsip/src/test/transport_test.c
- Timestamp:
- May 20, 2016 4:17:00 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/transport_test.c
r4537 r5311 38 38 struct pj_in_addr addr; 39 39 40 /* Note: inet_aton() returns non-zero if addr is valid! */ 41 if (pj_inet_aton(&tp->local_name.host, &addr) != 0) { 40 if (pj_inet_pton(pj_AF_INET(), &tp->local_name.host, 41 &addr) == PJ_SUCCESS) 42 { 42 43 if (addr.s_addr==PJ_INADDR_ANY || addr.s_addr==PJ_INADDR_NONE) { 43 44 PJ_LOG(3,(THIS_FILE, " Error: invalid address name"));
Note: See TracChangeset
for help on using the changeset viewer.