FreeBSD Bugzilla – Attachment 161635 Details for
Bug 203494
ipfw segfaults when nat parameters missing like "ipfw add nat"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
strlen(null) issue
ipfw_nat_strlen.patch (text/plain), 420 bytes, created by
bycn82
on 2015-10-02 01:48:23 UTC
(
hide
)
Description:
strlen(null) issue
Filename:
MIME Type:
Creator:
bycn82
Created:
2015-10-02 01:48:23 UTC
Size:
420 bytes
patch
obsolete
>Index: sbin/ipfw/ipfw2.c >=================================================================== >--- sbin/ipfw/ipfw2.c (revision 285868) >+++ sbin/ipfw/ipfw2.c (working copy) >@@ -3622,7 +3622,7 @@ > action->opcode = O_NAT; > action->len = F_INSN_SIZE(ipfw_insn_nat); > CHECK_ACTLEN; >- if (_substrcmp(*av, "global") == 0) { >+ if (*av != NULL &&_substrcmp(*av, "global") == 0) { > action->arg1 = 0; > av++; > break;
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 203494
: 161635