Changeset 5477


Ignore:
Timestamp:
Nov 1, 2016 4:10:17 AM (3 years ago)
Author:
riza
Message:

Re #1974: Fix DNS write on freed memory.
Thanks to Richard Mudgett for the patch.

File:
1 edited

Legend:

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

    r5475 r5477  
    930930            status = PJ_SUCCESS; 
    931931 
    932             goto on_return; 
     932            /* 
     933             * We cannot write to *p_query after calling cb because what 
     934             * p_query points to may have been freed by cb. 
     935             * Refer to ticket #1974. 
     936             */ 
     937            pj_mutex_unlock(resolver->mutex); 
     938            return status; 
    933939        } 
    934940 
Note: See TracChangeset for help on using the changeset viewer.