Changeset 3811


Ignore:
Timestamp:
Oct 11, 2011 4:40:50 AM (12 years ago)
Author:
bennylp
Message:

Some more error handling (re #1384: HTTP client source port range)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib-util/src/pjlib-util/http_client.c

    r3810 r3811  
    10741074        PJ_PERROR(1,(THIS_FILE, status, 
    10751075                     "Unable to bind to the requested port")); 
     1076        pj_sock_close(sock); 
    10761077        goto on_return; 
    10771078    } 
     
    10831084                                  &asock_cb, http_req, &http_req->asock); 
    10841085    if (status != PJ_SUCCESS) { 
    1085         if (sock != PJ_INVALID_SOCKET) 
    1086             pj_sock_close(sock); 
     1086        pj_sock_close(sock); 
    10871087        goto on_return; // error creating activesock 
    10881088    } 
Note: See TracChangeset for help on using the changeset viewer.