From: RafaƂ Gajda Date: Mon, 12 Aug 2019 12:08:25 +0000 (+0200) Subject: mesh: Fix model publication get X-Git-Tag: accepted/tizen/unified/20191220.123149^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8eb6ab170231f3bee30594ab7189b8f80ab970be;p=platform%2Fupstream%2Fbluez.git mesh: Fix model publication get Change-Id: I9537a38dbaa60fab422bf06be59f03d831c9cf99 Signed-off-by: Anupam Roy --- diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index 4447b1c..dbed7e0 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -93,7 +93,7 @@ static bool config_pub_get(struct mesh_node *node, uint16_t net_idx, ele_idx = node_get_element_idx(node, ele_addr); if (ele_idx >= 0) - pub = mesh_model_pub_get(node, ele_idx, mod_id, &status); + pub = mesh_model_pub_get(node, ele_addr, mod_id, &status); else status = MESH_STATUS_INVALID_ADDRESS;