- Timestamp:
- Oct 24, 2014 3:28:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
r4108 r4954 454 454 /* Build server addresses and call callback */ 455 455 srv.count = 0; 456 for (i=0; i<rec.addr_count; ++i) { 456 for (i = 0; i < rec.addr_count && 457 srv.count < PJSIP_MAX_RESOLVED_ADDRESSES; ++i) 458 { 457 459 srv.entry[srv.count].type = query->naptr[0].type; 458 460 srv.entry[srv.count].priority = 0; … … 499 501 unsigned j; 500 502 501 for (j=0; j<rec->entry[i].server.addr_count; ++j) { 503 for (j = 0; j < rec->entry[i].server.addr_count && 504 srv.count < PJSIP_MAX_RESOLVED_ADDRESSES; ++j) 505 { 502 506 srv.entry[srv.count].type = query->naptr[0].type; 503 507 srv.entry[srv.count].priority = rec->entry[i].priority;
Note: See TracChangeset
for help on using the changeset viewer.