prevent a crash reported by Robert

This commit is contained in:
gocha 2009-05-17 07:30:39 +00:00
parent caf05e22ea
commit 5e2b6b5582
1 changed files with 2 additions and 1 deletions

View File

@ -1175,7 +1175,8 @@ int WIFI_SoftAP_Init(wifimac_t *wifi)
void WIFI_SoftAP_Shutdown(wifimac_t *wifi)
{
PCAP::pcap_close(wifi->SoftAP.bridge);
if(wifi->SoftAP.bridge != NULL)
PCAP::pcap_close(wifi->SoftAP.bridge);
}
void WIFI_SoftAP_RecvPacketFromDS(wifimac_t *wifi, u8 *packet, int len)