Fix type instance sanitization in bind plugin
authorThomas Kho <tom@hioscar.com>
Thu, 2 Apr 2015 17:14:24 +0000 (13:14 -0400)
committerMarc Fournier <marc.fournier@camptocamp.com>
Thu, 2 Apr 2015 21:03:18 +0000 (23:03 +0200)
src/bind.c

index 19d95d4..d358146 100644 (file)
@@ -253,7 +253,7 @@ static void submit (time_t ts, const char *plugin_instance, /* {{{ */
   if (type_instance) {
     sstrncpy(vl.type_instance, type_instance,
         sizeof(vl.type_instance));
-    replace_special (vl.plugin_instance, sizeof (vl.plugin_instance));
+    replace_special (vl.type_instance, sizeof (vl.type_instance));
   }
   plugin_dispatch_values(&vl);
 } /* }}} void submit */