ypserv/ypserv-2.13-ypxfr-zeroresp.patch
cvsdist 39e988d63d auto-import changelog data from ypserv-2.13-4.src.rpm
Tue Aug 31 2004 Steve Dickson <SteveD@RedHat.com>
- Zeroed out the ypxfr response buffer so allocated memory is not freed
    with the transfer fails
Sat Jun 19 2004 Steve Dickson <SteveD@RedHat.com>
- Closed a memory leak in GDBM database routines (bz 120980)
2004-09-09 15:21:45 +00:00

11 lines
474 B
Diff

--- ypserv-2.13/ypxfr/ypxfr.c.orig 2004-01-12 08:12:15.000000000 -0500
+++ ypserv-2.13/ypxfr/ypxfr.c 2004-08-31 13:17:30.000000000 -0400
@@ -361,6 +361,7 @@ ypxfr (char *map, char *source_host, cha
struct hostent *h;
int sock, result;
+ memset(&resp_val, '\0', sizeof(resp_val));
/* Name of the map file */
if (strlen (path_ypdb) + strlen (target_domain) + strlen (map) + 3 < MAXPATHLEN)
sprintf (dbName_orig, "%s/%s/%s", path_ypdb, target_domain, map);