Skip to content

Commit

Permalink
dialog: properly handle BIN pop errors in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Sep 19, 2021
1 parent b3c31fb commit 4d969df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/dialog/dlg_replication.c
Expand Up @@ -152,11 +152,11 @@ int dlg_replicated_create(bin_packet_t *packet, struct dlg_cell *cell,
DLG_BIN_POP(str, packet, to_tag, malformed);
DLG_BIN_POP(str, packet, from_uri, malformed);
DLG_BIN_POP(str, packet, to_uri, malformed);
DLG_BIN_POP(int, packet, h_id, pre_linking_error);
DLG_BIN_POP(int, packet, h_id, malformed);
}

DLG_BIN_POP(int, packet, start_ts, pre_linking_error);
DLG_BIN_POP(int, packet, state, pre_linking_error);
DLG_BIN_POP(int, packet, start_ts, malformed);
DLG_BIN_POP(int, packet, state, malformed);

if (!cell) {
h_entry = dlg_hash(&callid);
Expand Down

0 comments on commit 4d969df

Please sign in to comment.