Package: cfengine2 / 2.2.10-7

511666-segfault.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fix a bug involving CheckFriendReliability (see bug #482439)

--- a/src/instrument.c
+++ b/src/instrument.c
@@ -710,11 +710,11 @@
       key.data = timekey;
       key.size = strlen(timekey)+1;
 
-      if ((errno = dbp->get(dbp,NULL,&key,&value,0)) != 0)
+      if ((errno = dbpent->get(dbpent,NULL,&key,&value,0)) != 0)
          {
          if (errno != DB_NOTFOUND)
             {
-            dbp->err(dbp,errno,NULL);
+            dbpent->err(dbpent,errno,NULL);
             exit(1);
             }
          }