FreeBSD Bugzilla – Attachment 233165 Details for
Bug 263240
IPFW tools: Parsing error in nat config port_range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
IPFW NAT config: port range parsing fix
ipfw_nat_port_range.patch (text/plain), 385 bytes, created by
Andrey Linkevich
on 2022-04-12 14:10:44 UTC
(
hide
)
Description:
IPFW NAT config: port range parsing fix
Filename:
MIME Type:
Creator:
Andrey Linkevich
Created:
2022-04-12 14:10:44 UTC
Size:
385 bytes
patch
obsolete
>--- nat.c.orig 2021-10-14 03:06:02.000000000 +0300 >+++ nat.c 2022-04-12 16:51:50.668007000 +0300 >@@ -765,10 +765,10 @@ > if (!ptr || *ptr != '-') > return 0; > /* Upper port parsing */ >- hp = (long) strtol(ptr, &ptr, 10); >+ hp = (long) strtol(++ptr, &ptr, 10); > if (hp < 1024 || hp > 65535) > return 0; >- if (ptr) >+ if (!ptr || *ptr != '\0') > return 0; > > *lpout = (u_short) lp;
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 263240
: 233165