mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix Nullpointer
This commit is contained in:
parent
0944faed7f
commit
e6ad7fc0dc
1 changed files with 5 additions and 0 deletions
|
@ -238,6 +238,11 @@ static int subscribe_to_hostapd_interfaces(char *hostapd_dir) {
|
|||
}
|
||||
|
||||
dirp = opendir(hostapd_dir); // error handling?
|
||||
if(!dirp)
|
||||
{
|
||||
fprintf(stderr, "No hostapd sockets!\n");
|
||||
return -1;
|
||||
}
|
||||
while ((entry = readdir(dirp)) != NULL) {
|
||||
if (entry->d_type == DT_SOCK) {
|
||||
char subscribe_name[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue