send_raw_resolver_callback bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In function send_raw_resolver_callback:

if (sraw_data->app_cb) {
    (*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
			 -status);
}

but

if (status == PJ_SUCCESS) {
    (*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
			 data_len);
} else if (status != PJ_EPENDING) {
    (*sraw_data->app_cb)(sraw_data->app_token, sraw_data->tdata,
			 -status);
}

without if (sraw_data->app_cb) {...}

This function call from pjsip_endpt_send_raw_to_uri with the _optional_ argument "cb".
If cb=NULL, sraw_data->app_cb=NULL.

Oleg.



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux