mirror of
git://slackware.nl/current.git
synced 2025-01-03 23:03:22 +01:00
21 lines
655 B
Diff
21 lines
655 B
Diff
|
--- ./nscd/netgroupcache.c.orig 2021-08-07 13:20:02.459057859 -0500
|
||
|
+++ ./nscd/netgroupcache.c 2021-08-07 13:22:08.983060689 -0500
|
||
|
@@ -248,7 +248,7 @@
|
||
|
: NULL);
|
||
|
ndomain = (ndomain ? newbuf + ndomaindiff
|
||
|
: NULL);
|
||
|
- buffer = newbuf;
|
||
|
+ *tofreep = buffer = newbuf;
|
||
|
}
|
||
|
|
||
|
nhost = memcpy (buffer + bufused,
|
||
|
@@ -319,7 +319,7 @@
|
||
|
else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
|
||
|
{
|
||
|
buflen *= 2;
|
||
|
- buffer = xrealloc (buffer, buflen);
|
||
|
+ *tofreep = buffer = xrealloc (buffer, buflen);
|
||
|
}
|
||
|
else if (status == NSS_STATUS_RETURN
|
||
|
|| status == NSS_STATUS_NOTFOUND
|