Changeset 4514 for pjproject


Ignore:
Timestamp:
May 3, 2013 9:07:43 AM (12 years ago)
Author:
nanang
Message:

Fix #1663: Fixed pj_ioqueue_register_sock2() to avoid access to uninitialized pointer.

Location:
pjproject/trunk/pjlib/src/pj
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_epoll.c

    r4434 r4514  
    441441on_return: 
    442442    if (rc != PJ_SUCCESS) { 
    443         if (key->grp_lock) 
     443        if (key && key->grp_lock) 
    444444            pj_grp_lock_dec_ref_dbg(key->grp_lock, "ioqueue", 0); 
    445445    } 
  • pjproject/trunk/pjlib/src/pj/ioqueue_select.c

    r4359 r4514  
    390390    /* On error, socket may be left in non-blocking mode. */ 
    391391    if (rc != PJ_SUCCESS) { 
    392         if (key->grp_lock) 
     392        if (key && key->grp_lock) 
    393393            pj_grp_lock_dec_ref_dbg(key->grp_lock, "ioqueue", 0); 
    394394    } 
Note: See TracChangeset for help on using the changeset viewer.