511666-segfault.patch 731 B

123456789101112131415161718192021
  1. Fix a bug involving CheckFriendReliability (see bug #482439)
  2. Index: cfengine2-2.2.9/src/instrument.c
  3. ===================================================================
  4. --- cfengine2-2.2.9.orig/src/instrument.c 2009-03-06 21:25:59.000000000 +0000
  5. +++ cfengine2-2.2.9/src/instrument.c 2009-03-06 21:26:31.000000000 +0000
  6. @@ -716,11 +716,11 @@
  7. key.data = timekey;
  8. key.size = strlen(timekey)+1;
  9. - if ((errno = dbp->get(dbp,NULL,&key,&value,0)) != 0)
  10. + if ((errno = dbpent->get(dbpent,NULL,&key,&value,0)) != 0)
  11. {
  12. if (errno != DB_NOTFOUND)
  13. {
  14. - dbp->err(dbp,errno,NULL);
  15. + dbpent->err(dbpent,errno,NULL);
  16. exit(1);
  17. }
  18. }