FreeBSD Bugzilla – Attachment 15013 Details for
Bug 27990
ypbind uses memory after freeing it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 670 bytes, created by
ben
on 2001-06-09 17:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
ben
Created:
2001-06-09 17:30:01 UTC
Size:
670 bytes
patch
obsolete
>--- ypbind.c.orig Sat Jun 9 17:03:47 2001 >+++ ypbind.c Sat Jun 9 17:04:32 2001 >@@ -394,7 +394,7 @@ > int i; > DIR *dird; > struct dirent *dirp; >- struct _dom_binding *ypdb; >+ struct _dom_binding *ypdb, *next; > > /* Check that another ypbind isn't already running. */ > if ((yplockfd = (open(YPBINDLOCK, O_RDONLY|O_CREAT, 0444))) == -1) >@@ -493,7 +493,8 @@ > syslog(LOG_WARNING, "select: %m"); > break; > default: >- for(ypdb=ypbindlist; ypdb; ypdb=ypdb->dom_pnext) { >+ for(ypdb=ypbindlist; ypdb; ypdb=next) { >+ next = ypdb->dom_pnext; > if (READFD > 0 && FD_ISSET(READFD, &fdsr)) { > handle_children(ypdb); > if (children == (MAX_CHILDREN - 1))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27990
: 15013