Skip to content

Commit

Permalink
usrloc: Fix a bug in MI "ul_dump" output structure
Browse files Browse the repository at this point in the history
When the code was ported to the new MI interface, the AoR KV-Store ended
up being moved to the wrong place, effectively crashing on 0 contacts.

(cherry picked from commit 6929c4a)
  • Loading branch information
liviuchircu committed Apr 18, 2019
1 parent b911c07 commit 08dfb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/usrloc/ul_mi.c
Expand Up @@ -222,7 +222,7 @@ static inline int mi_add_aor_node(mi_item_t *aor_item, urecord_t* r,

if (mi_dump_kv_store) {
kv_buf = store_serialize(r->kv_storage);
if (!ZSTR(kv_buf) && (add_mi_string(ct_item, MI_SSTR("KV-Store"),
if (!ZSTR(kv_buf) && (add_mi_string(aor_item, MI_SSTR("KV-Store"),
kv_buf.s, kv_buf.len) < 0)) {
store_free_buffer(&kv_buf);
return -1;
Expand Down

0 comments on commit 08dfb8d

Please sign in to comment.