X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frouteros.c;h=2ade3bb9c9d2cceb90a71f8950353dd214f2c80a;hb=82e27678f8972d2625b466e7e7ba9daaa6395c98;hp=d61ffe984d36cfa2eaa3b74efce9872abdc9d648;hpb=4ecefb9fb8183eadee48538553615c0425e51f69;p=collectd.git diff --git a/src/routeros.c b/src/routeros.c index d61ffe98..2ade3bb9 100644 --- a/src/routeros.c +++ b/src/routeros.c @@ -341,7 +341,7 @@ static int cr_config_router (oconfig_item_t *ci) /* {{{ */ if (strcasecmp ("Host", child->key) == 0) status = cf_util_get_string (child, &router_data->node); else if (strcasecmp ("Port", child->key) == 0) - status = cf_util_get_string (child, &router_data->service); + status = cf_util_get_service (child, &router_data->service); else if (strcasecmp ("User", child->key) == 0) status = cf_util_get_string (child, &router_data->username); else if (strcasecmp ("Password", child->key) == 0)