Skip to content
Snippets Groups Projects

Bug_6731: Fixed, Segmentation fault in mapcontroller function cntlr_iterate_fbss during memcmp

Closed Arun Muthusamy requested to merge Bug_6731 into devel
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -260,8 +260,10 @@ struct netif_iface *cntlr_iterate_fbss(struct controller *c, uint8_t *mac)
@@ -260,8 +260,10 @@ struct netif_iface *cntlr_iterate_fbss(struct controller *c, uint8_t *mac)
list_for_each_entry(n, &c->nodelist, list) {
list_for_each_entry(n, &c->nodelist, list) {
list_for_each_entry(r, &n->radiolist, list) {
list_for_each_entry(r, &n->radiolist, list) {
list_for_each_entry(p, &r->iflist, list) {
list_for_each_entry(p, &r->iflist, list) {
if (!memcmp(p->bssid, mac, 6))
if (p->bssid) {
return p;
if (!memcmp(p->bssid, mac, 6))
 
return p;
 
}
}
}
}
}
}
}
Loading