summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink_manager.cpp')
-rw-r--r--net/netlink_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/netlink_manager.cpp b/net/netlink_manager.cpp
index 74b156c..b612514 100644
--- a/net/netlink_manager.cpp
+++ b/net/netlink_manager.cpp
@@ -179,12 +179,14 @@ void NetlinkManager::OnNewFamily(unique_ptr<const NL80211Packet> packet) {
179 } 179 }
180 for (auto& group : groups) { 180 for (auto& group : groups) {
181 string group_name; 181 string group_name;
182 uint32_t group_id; 182 uint32_t group_id = 0;
183 if (!group.GetAttributeValue(CTRL_ATTR_MCAST_GRP_NAME, &group_name)) { 183 if (!group.GetAttributeValue(CTRL_ATTR_MCAST_GRP_NAME, &group_name)) {
184 LOG(ERROR) << "Failed to get group name"; 184 LOG(ERROR) << "Failed to get group name";
185 continue;
185 } 186 }
186 if (!group.GetAttributeValue(CTRL_ATTR_MCAST_GRP_ID, &group_id)) { 187 if (!group.GetAttributeValue(CTRL_ATTR_MCAST_GRP_ID, &group_id)) {
187 LOG(ERROR) << "Failed to get group id"; 188 LOG(ERROR) << "Failed to get group id";
189 continue;
188 } 190 }
189 message_types_[family_name].groups[group_name] = group_id; 191 message_types_[family_name].groups[group_name] = group_id;
190 } 192 }