]> andersk Git - moira.git/commitdiff
Found possible reason why full membership edits weren't happening;
authorprobe <probe>
Tue, 4 May 1993 16:15:19 +0000 (16:15 +0000)
committerprobe <probe>
Tue, 4 May 1993 16:15:19 +0000 (16:15 +0000)
moira_disconnect might be doing the final edit_groups and in turn call
moira_disconnect again, thus possibly freeing the same memory twice.

incremental/afs.c

index 7654288b5a4133ccf008fa77e73f208a1d62b4b6..6621637d66e8da6b1869fcefdea2ba789680a9dc 100644 (file)
@@ -556,7 +556,13 @@ edit_group(op, group, type, member)
                               "Error contacting Moira server to lookup user %s: %s",
                               member, error_message(code));
            }
-           moira_disconnect();
+
+           /* We don't use moira_disconnect()
+            * because we may already be in the routine.
+            */
+           mr_disconnect();
+           mr_connections--;
+
            if (!code && ustate!=1 && ustate!=2) return; /* inactive user */
            code = PRNOENT;
        }
This page took 0.039398 seconds and 5 git commands to generate.