FreeBSD Bugzilla – Attachment 259468 Details for
Bug 286036
routed(8) uses plain int as a length to recvfrom
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to change type of fromlen
rdisc.patch (text/plain), 718 bytes, created by
Sprow
on 2025-04-11 10:08:53 UTC
(
hide
)
Description:
Patch to change type of fromlen
Filename:
MIME Type:
Creator:
Sprow
Created:
2025-04-11 10:08:53 UTC
Size:
718 bytes
patch
obsolete
>diff --git "a/rdisc.2dfcc15768d8795c6f1170ff310b02f788405add.c" "b/rdisc.c" >index 2dfcc15..bba6c2b 100644 >--- "a/rdisc.2dfcc15768d8795c6f1170ff310b02f788405add.c" >+++ "b/rdisc.c" >@@ -929,7 +929,8 @@ read_d(void) > static struct msg_limit bad_name; > #endif > struct sockaddr_in from; >- int n, fromlen, cc, hlen; >+ socklen_t fromlen; >+ int n, cc, hlen; > struct { > #ifdef USE_PASSIFNAME > char ifname[IFNAMSIZ]; >@@ -956,7 +957,7 @@ read_d(void) > } > if (fromlen != sizeof(struct sockaddr_in)) > logbad(1,"impossible recvfrom(rdisc_sock) fromlen=%d", >- fromlen); >+ (int)fromlen); > #ifdef USE_PASSIFNAME > if ((cc -= sizeof(buf.ifname)) < 0) > logbad(0,"missing USE_PASSIFNAME; only %d bytes",
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 286036
:
259468
|
259484
|
259485
|
259486