Changeset 5612


Ignore:
Timestamp:
Jul 4, 2017 12:06:22 AM (7 years ago)
Author:
ming
Message:

Fixed #2024: Crash due to uncancelled timer if there's an error in resolver's query transmit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c

    r5534 r5612  
    767767    } 
    768768 
    769     if (send_cnt == 0) 
     769    if (send_cnt == 0) { 
     770        pj_timer_heap_cancel(resolver->timer, &q->timer_entry); 
    770771        return PJLIB_UTIL_EDNSNOWORKINGNS; 
     772    } 
    771773 
    772774    ++q->transmit_cnt; 
Note: See TracChangeset for help on using the changeset viewer.