FreeBSD Bugzilla – Attachment 56853 Details for
Bug 85839
[maintainer-update] openradius .9.10 - fatal error amd64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
openradius.patch
openradius.patch (text/plain), 1.59 KB, created by
Adam Jette
on 2005-09-07 17:40:05 UTC
(
hide
)
Description:
openradius.patch
Filename:
MIME Type:
Creator:
Adam Jette
Created:
2005-09-07 17:40:05 UTC
Size:
1.59 KB
patch
obsolete
>diff -ruN openradius.bak/files/patch-ringbuf openradius/files/patch-ringbuf >--- openradius.bak/files/patch-ringbuf Wed Dec 31 19:00:00 1969 >+++ openradius/files/patch-ringbuf Wed Sep 7 11:31:47 2005 >@@ -0,0 +1,62 @@ >+--- common/ringbuf.c.orig Mon Feb 14 16:10:51 2005 >++++ common/ringbuf.c Tue Aug 30 13:55:42 2005 >+@@ -355,7 +355,7 @@ >+ ssize_t ring_count(RING *r, RINGCNTFUNC func, ...) >+ { >+ va_list ap; >+- ssize_t len, ret; >++ ssize_t len, ret = 0; >+ >+ len = ring_maxget(r); >+ >+@@ -363,37 +363,41 @@ >+ >+ /* There is data available */ >+ >+- va_start(ap, func); >+- >+ if (r->r + len <= r->size) { >+ >+ /* Message ends before end of buffer */ >+ >+ /* peek at single part, return whatever the >+ closure returns. */ >+- return func(r->buf + r->r, len, 0, ap); >++ va_start(ap, func); >++ ret = func(r->buf + r->r, len, 0, ap); >++ va_end(ap); >+ } >+ else { >+ >+ /* Message doesn't end before end of buffer */ >+ >+ /* peek at first part, till end of buffer */ >++ va_start(ap, func); >+ ret = func(r->buf + r->r, r->size - r->r, 0, ap); >++ va_end(ap); >+ >+ if (ret < r->size - r->r) { >+ /* Satisfied by first part; return whatever >+ the closure gave us. */ >+- return ret; >+ } >+- >+- /* peek at rest, from start of buffer */ >+- return ret + func(r->buf, len - (r->size - r->r), >+- ret, ap); >++ else { >++ /* peek at rest, from start of buffer */ >++ va_start(ap, func); >++ ret += func(r->buf, len - (r->size - r->r), >++ ret, ap); >++ va_end(ap); >++ } >+ } >+ } >+ >+ /* No data available, return 0. */ >+- return 0; >++ return ret; >+ } >+ >+
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 85839
: 56853