]> andersk Git - moira.git/commitdiff
Fix another freeing-memory-we-didn't-malloc bug in AddMachine. This
authordanw <danw>
Thu, 29 May 1997 16:50:04 +0000 (16:50 +0000)
committerdanw <danw>
Thu, 29 May 1997 16:50:04 +0000 (16:50 +0000)
should fix the core-dumping bug from [1056] in Moira and several
transactions in bugs.

clients/moira/cluster.c

index 328766f9eea466e22b1caa6f0129499886472823..4ab557be3254010fbf45794644adc22c39514273 100644 (file)
@@ -809,7 +809,7 @@ char **argv;
        return(DM_NORMAL);
     }
     rinfo = SetMachineDefaults(info, name);
-    rinfo[M_SUBNET] = argv[1];
+    rinfo[M_SUBNET] = strsave(argv[1]);
     if ((args = AskMCDInfo(rinfo, MACHINE, FALSE)) == NULL) {
        Put_message("Aborted.");
        return(DM_NORMAL);
This page took 0.035872 seconds and 5 git commands to generate.