X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frouteros.c;h=2ade3bb9c9d2cceb90a71f8950353dd214f2c80a;hb=9f6f901889d4c9f594b5ae1fd0f449fcdd2d8fe3;hp=d61ffe984d36cfa2eaa3b74efce9872abdc9d648;hpb=efa4700ad47969749b0fca622294fd006b2d7cb8;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)