]> andersk Git - moira.git/commitdiff
don't free the pointer to the thing we want to free.
authorjweiss <jweiss>
Wed, 12 Apr 2000 06:02:29 +0000 (06:02 +0000)
committerjweiss <jweiss>
Wed, 12 Apr 2000 06:02:29 +0000 (06:02 +0000)
fixes coredump in "add network" on linux

clients/moira/utils.c

index 0a688e043e4fa842f3f407fc11cf34815b0b2aa2..49864976155dadf77950c9eee86b543c9062c293 100644 (file)
@@ -865,7 +865,7 @@ int GetAddressFromUser(char *prompt, char **pointer)
   if (ret == SUB_ERROR)
     return SUB_ERROR;
   addr.s_addr = inet_addr(value);
-  free(pointer);
+  free(*pointer);
   sprintf(buf, "%ld", ntohl(addr.s_addr));
   *pointer = strdup(buf);
   return SUB_NORMAL;
This page took 0.041253 seconds and 5 git commands to generate.