Code

Merge remote-tracking branch 'github/pr/387'
[collectd.git] / src / routeros.c
index d61ffe984d36cfa2eaa3b74efce9872abdc9d648..2ade3bb9c9d2cceb90a71f8950353dd214f2c80a 100644 (file)
@@ -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)