Commit 17bc5867 authored by Jiří Klimeš's avatar Jiří Klimeš

ifcfg-rh: socket() returns -1 on failure

parent 5075ffe3
......@@ -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));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment