diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-07-29 11:54:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-07-29 11:54:42 +0200 |
commit | ecf0680aa5d3a94a8dd080c93e7095b9ce91bec2 (patch) | |
tree | 727553eb065f113bbeba8a503312c0b141378589 | |
parent | 537e110011473aaf4234910f787fa2e0235e4aba (diff) |
avoid sending a dialogue request with primitive == 0
-rw-r--r-- | src/tcap_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |