[SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing
This commit is contained in:
parent
07b02d1817
commit
41970562c9
|
@ -1,3 +1,7 @@
|
|||
2006-07-15 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* [SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing
|
||||
|
||||
2006-07-13 Doug MacEachern <dougm@hyperic.com>
|
||||
|
||||
* Validate that sigar.jar is binary compatible with the native library
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue