mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 18:10:08 +01:00
ifcfg-rh: socket() returns -1 on failure
This commit is contained in:
parent
5075ffe324
commit
17bc5867dc
1 changed files with 1 additions and 1 deletions
|
|
@ -3246,7 +3246,7 @@ is_wireless_device (const char *iface)
|
|||
g_return_val_if_fail (iface != NULL, FALSE);
|
||||
|
||||
fd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (!fd)
|
||||
if (fd == -1)
|
||||
return FALSE;
|
||||
|
||||
memset (&wrq, 0, sizeof (struct iwreq));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue