Set buffer to NULL if realloc fails so that possible next call starts
authordrepper <drepper>
Wed, 5 Nov 1997 23:19:41 +0000 (23:19 +0000)
committerdrepper <drepper>
Wed, 5 Nov 1997 23:19:41 +0000 (23:19 +0000)
with malloc again.

nss/getXXbyYY.c

index 47df15b..0df916b 100644 (file)
@@ -117,6 +117,7 @@ FUNCTION_NAME (ADD_PARAMS)
             process gets a chance for a normal termination.  */
          save = errno;
          free (buffer);
+         buffer = NULL;
          __set_errno (save);
        }
       buffer = new_buf;