INN commit: trunk/storage/buffindexed (buffindexed.c)

INN Commit rra at isc.org
Tue Jan 5 12:53:48 UTC 2021


    Date: Tuesday, January 5, 2021 @ 04:53:48
  Author: iulius
Revision: 10494

buffindexed:  fix a possible uninitialized variable (gloc)

Modified:
  trunk/storage/buffindexed/buffindexed.c

---------------+
 buffindexed.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: buffindexed.c
===================================================================
--- buffindexed.c	2021-01-05 10:31:25 UTC (rev 10493)
+++ buffindexed.c	2021-01-05 12:53:48 UTC (rev 10494)
@@ -2049,11 +2049,11 @@
       }
     }
   }
+  gloc = GROUPfind(group, false);
+  if (GROUPLOCempty(gloc)) {
+    return false;
+  }
   if (!grouplocked) {
-    gloc = GROUPfind(group, false);
-    if (GROUPLOCempty(gloc)) {
-      return false;
-    }
     GROUPlock(gloc, INN_LOCK_WRITE);
   }
   if (!(handle = ovopensearch(group, artnum, artnum, false))) {



More information about the inn-committers mailing list