Package: collectd / 5.7.1-1.1

dpdkstat_goto_label.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: dpdkstat plugin: jump to the right label
Author: Ruben Kerkhof <ruben@rubenkerkhof.com>

diff --git a/src/dpdkstat.c b/src/dpdkstat.c
index 2686be151..d1383458d 100644
--- a/src/dpdkstat.c
+++ b/src/dpdkstat.c
@@ -289,13 +289,13 @@ static int dpdk_shm_init(size_t size) {
   if (err) {
     ERROR("dpdkstat semaphore init failed: %s",
           sstrerror(errno, errbuf, sizeof(errbuf)));
-    goto close;
+    goto fail;
   }
   err = sem_init(&g_configuration->sema_stats_in_shm, 1, 0);
   if (err) {
     ERROR("dpdkstat semaphore init failed: %s",
           sstrerror(errno, errbuf, sizeof(errbuf)));
-    goto close;
+    goto fail;
   }
 
   g_configuration->xstats = NULL;