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