mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 10:18:02 +00:00
coverity: #1248105
Time of check time of use Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
0382c0da7b
commit
023e2a307a
@ -571,7 +571,6 @@ static char *is_wlan(const char *ifname)
|
||||
size_t len;
|
||||
char *path;
|
||||
FILE *f;
|
||||
struct stat sb;
|
||||
char *physname = NULL;
|
||||
|
||||
len = strlen(ifname) + strlen(PHYSNAME) - 1;
|
||||
@ -580,10 +579,6 @@ static char *is_wlan(const char *ifname)
|
||||
if (ret < 0 || (size_t)ret >= len)
|
||||
goto bad;
|
||||
|
||||
ret = stat(path, &sb);
|
||||
if (ret)
|
||||
goto bad;
|
||||
|
||||
f = fopen(path, "r");
|
||||
if (!f)
|
||||
goto bad;
|
||||
|
Loading…
Reference in New Issue
Block a user