mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: fixed a nil pointer dereference when wifi.show is executed before wifi.recon on
This commit is contained in:
parent
575022fac4
commit
26b2c300b8
1 changed files with 7 additions and 0 deletions
|
@ -315,6 +315,13 @@ func (mod *WiFiModule) showStatusBar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mod *WiFiModule) Show() (err error) {
|
func (mod *WiFiModule) Show() (err error) {
|
||||||
|
// module has not been started yet
|
||||||
|
if mod.iface == nil {
|
||||||
|
if err := mod.Configure(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var stations []*network.Station
|
var stations []*network.Station
|
||||||
if err, stations = mod.doSelection(); err != nil {
|
if err, stations = mod.doSelection(); err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue