From a30ff8b3594cc46e0b1badb7fc6ab50e891f5bb6 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Wed, 21 Feb 2018 03:30:09 +0100 Subject: [PATCH] fixes #59 --- modules/wifi_recon.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/wifi_recon.go b/modules/wifi_recon.go index f892a70c..af92f260 100644 --- a/modules/wifi_recon.go +++ b/modules/wifi_recon.go @@ -164,10 +164,11 @@ func (w *WiFiRecon) getRow(station *network.Station) []string { // this is ugly, but necessary in order to have this // method handle both access point and clients // transparently - ap, _ := w.Session.WiFi.Get(station.HwAddress) clients := "" - if ap.NumClients() > 0 { - clients = strconv.Itoa(ap.NumClients()) + if ap, found := w.Session.WiFi.Get(station.HwAddress); found == true { + if ap.NumClients() > 0 { + clients = strconv.Itoa(ap.NumClients()) + } } return []string{