Changeset 1278 for pjproject


Ignore:
Timestamp:
May 15, 2007 8:27:08 PM (18 years ago)
Author:
bennylp
Message:

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

Location:
pjproject/trunk
Files:
2 edited

Legend:

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

    r1239 r1278  
    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/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1266 r1278  
    489489        status = pjsip_endpt_create_resolver(pjsua_var.endpt,  
    490490                                             &pjsua_var.resolver); 
    491         PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
     491        if (status != PJ_SUCCESS) { 
     492            pjsua_perror(THIS_FILE, "Error creating resolver", status); 
     493            return status; 
     494        } 
    492495 
    493496        /* Configure nameserver for the DNS resolver */ 
Note: See TracChangeset for help on using the changeset viewer.