Changeset 1879 for pjproject/trunk/pjnath/src/pjturn-srv/server.c
- Timestamp:
- Mar 20, 2008 4:32:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjturn-srv/server.c
r1877 r1879 136 136 /* Init ports settings */ 137 137 srv->ports.min_udp = srv->ports.next_udp = MIN_PORT; 138 srv->ports.max_ tcp = MAX_PORT;138 srv->ports.max_udp = MAX_PORT; 139 139 srv->ports.min_tcp = srv->ports.next_tcp = MIN_PORT; 140 140 srv->ports.max_tcp = MAX_PORT; … … 266 266 } 267 267 268 /* Destroy all allocations FIRST */ 269 if (srv->tables.alloc) { 270 it = pj_hash_first(srv->tables.alloc, &itbuf); 271 while (it != NULL) { 272 pj_turn_allocation *alloc = (pj_turn_allocation*) 273 pj_hash_this(srv->tables.alloc, it); 274 pj_hash_iterator_t *next = pj_hash_next(srv->tables.alloc, it); 275 pj_turn_allocation_destroy(alloc); 276 it = next; 277 } 278 } 279 268 280 /* Destroy all listeners and STUN sessions associated with them. */ 269 281 for (i=0; i<srv->core.lis_cnt; ++i) { … … 277 289 } 278 290 } 279 280 /* Destroy all allocations */281 if (srv->tables.alloc) {282 it = pj_hash_first(srv->tables.alloc, &itbuf);283 while (it != NULL) {284 pj_turn_allocation *alloc = (pj_turn_allocation*)285 pj_hash_this(srv->tables.alloc, it);286 pj_turn_allocation_destroy(alloc);287 it = pj_hash_next(srv->tables.alloc, it);288 }289 }290 291 291 292 292 /* Destroy hash tables (well, sort of) */
Note: See TracChangeset
for help on using the changeset viewer.