Changeset 3228 for pjproject/trunk


Ignore:
Timestamp:
Jun 29, 2010 5:02:59 PM (14 years ago)
Author:
ming
Message:

Misc(re #1068): fixed crash because pj_http_req may now be destroyed after calling on_complete callback.

File:
1 edited

Legend:

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

    r3098 r3228  
    2929#include <pjlib-util/scanner.h> 
    3030 
    31 #if 0 
     31#if 1 
    3232    /* Enable some tracing */ 
    3333    #define THIS_FILE   "http_client.c" 
     
    328328 
    329329            if (rem > 0 || hreq->response.content_length == 0) 
    330                 http_on_data_read(asock, (rem == 0 ? NULL: 
    331                                   (char *)data + size - rem), 
    332                                   rem, PJ_SUCCESS, NULL); 
     330                return http_on_data_read(asock, (rem == 0 ? NULL: 
     331                                         (char *)data + size - rem), 
     332                                         rem, PJ_SUCCESS, NULL); 
    333333        } 
    334334 
Note: See TracChangeset for help on using the changeset viewer.