Changeset 1277


Ignore:
Timestamp:
May 15, 2007 8:12:04 PM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #275: Error creating resolver on Win32 release mode (thanks Frank Wiersma)

Location:
pjproject/branches/pjproject-0.5-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib-util/src/pjlib-util/resolver.c

    r1033 r1277  
    291291        goto on_error; 
    292292 
     293    /* Bind to any address/port */ 
     294    status = pj_sock_bind_in(resv->udp_sock, 0, 0); 
     295    if (status != PJ_SUCCESS) 
     296        goto on_error; 
     297 
    293298    /* Register to ioqueue */ 
    294299    pj_bzero(&socket_cb, sizeof(socket_cb)); 
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_core.c

    r1223 r1277  
    474474        /* Create DNS resolver */ 
    475475        status = pjsip_endpt_create_resolver(pjsua_var.endpt, &resv); 
    476         PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
     476        if (status != PJ_SUCCESS) { 
     477            pjsua_perror(THIS_FILE, "Error creating resolver", status); 
     478            return status; 
     479        } 
    477480 
    478481        /* Configure nameserver for the DNS resolver */ 
Note: See TracChangeset for help on using the changeset viewer.