Skip to content

Commit

Permalink
coverity: #1248105
Browse files Browse the repository at this point in the history
Time of check time of use

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed May 12, 2018
1 parent e958e72 commit e9d2f37
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lxc/network.c
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e9d2f37

Please sign in to comment.