[SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing
This commit is contained in:
1 parent
07b02d1817
commit
41970562c9
2 files changed
+6
-2
No files matched your search
+2
-2
@@ -1168,10 +1168,10 @@ int sigar_net_info_get(sigar_t *sigar,
|
||||
int len;
|
||||
|
||||
SIGAR_SKIP_SPACE(ptr);
|
||||
if (!(ptr = strstr(ptr, "nameserver "))) {
|
||||
if (!(ptr = strstr(ptr, "nameserver"))) {
|
||||
continue;
|
||||
}
|
||||
ptr += 11;
|
||||
ptr += 10;
|
||||
SIGAR_SKIP_SPACE(ptr);
|
||||
|
||||
len = strlen(ptr);
|
||||
|
||||
Reference in new issue
Block a user