From ecf0680aa5d3a94a8dd080c93e7095b9ce91bec2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 29 Jul 2010 11:54:42 +0200 Subject: avoid sending a dialogue request with primitive == 0 --- src/tcap_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcap_test.c b/src/tcap_test.c index 22667a6..1b9d15e 100644 --- a/src/tcap_test.c +++ b/src/tcap_test.c @@ -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)); -- cgit v1.2.3