avoid sending a dialogue request with primitive == 0

This commit is contained in:
Harald Welte 2010-07-29 11:54:42 +02:00
parent 537e110011
commit ecf0680aa5
1 changed files with 1 additions and 1 deletions

View File

@ -46,12 +46,12 @@ static int send_cont_end(uint32_t dialg_id, struct tcap_obj_ident *app_ctx, stru
struct tcap_prim_buf tcpb;
struct tcap_dialg_ind *tcdi = &tcpb.dialg;
memset(&tcpb, 0, sizeof(tcpb));
if (end)
tcpb.prim = TCAP_PR_TC_END;
else
tcpb.prim = TCAP_PR_TC_CONTINUE;
memset(&tcpb, 0, sizeof(tcpb));
tcdi->dialg_id = dialg_id;
if (app_ctx) {
memcpy(&tcdi->app_ctx_name, app_ctx, sizeof(tcdi->app_ctx_name));