Skip to content

Commit

Permalink
b2b_entities: fix bad logic caused by identation
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Nov 8, 2016
1 parent d7624b2 commit eb2f8a4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions modules/b2b_entities/b2b_entities.c
Expand Up @@ -625,18 +625,22 @@ static inline int mi_print_b2be_dlg(struct mi_node *rpl, b2b_table htable, unsig
{
node1 = add_mi_node_child(node, MI_DUP_VALUE, "tm_tran", 7, NULL, 0);
if(node1 == NULL) goto error;
if(dlg->uac_tran)
if(dlg->uac_tran) {
attr = add_mi_attr(node1,MI_DUP_VALUE,"uac",3,NULL,0);
if(attr == NULL) goto error;
if(dlg->uas_tran)
if(attr == NULL) goto error;
}
if(dlg->uas_tran) {
attr = add_mi_attr(node1,MI_DUP_VALUE,"uas",3,NULL,0);
if(attr == NULL) goto error;
if(dlg->update_tran)
if(attr == NULL) goto error;
}
if(dlg->update_tran) {
attr = add_mi_attr(node1,MI_DUP_VALUE,"update",6,NULL,0);
if(attr == NULL) goto error;
if(dlg->cancel_tm_tran)
if(attr == NULL) goto error;
}
if(dlg->cancel_tm_tran) {
attr = add_mi_attr(node1,MI_DUP_VALUE,"cancel_tm",9,NULL,0);
if(attr == NULL) goto error;
if(attr == NULL) goto error;
}
}

if ( (leg=dlg->legs)!=NULL ) {
Expand Down

0 comments on commit eb2f8a4

Please sign in to comment.