Fix two instances of improper NULL/0 use idetified by the changes lately.
Submitted by: Patrick Marie Approved by: bms(mentor)
This commit is contained in:
parent
791e1cc501
commit
b62869e4ee
@ -2737,7 +2737,7 @@ natrule : nataction interface af proto fromto tag redirpool pooltype
|
||||
memcpy(&r.rpool.key, $8.key,
|
||||
sizeof(struct pf_poolhashkey));
|
||||
|
||||
if ($9 != NULL) {
|
||||
if ($9 != 0) {
|
||||
if (r.action != PF_NAT) {
|
||||
yyerror("the 'static-port' option is "
|
||||
"only valid with nat rules");
|
||||
|
@ -165,7 +165,7 @@ void
|
||||
print_altq(const struct pf_altq *a, unsigned level, struct node_queue_bw *bw,
|
||||
struct node_queue_opt *qopts)
|
||||
{
|
||||
if (a->qname[0] != NULL) {
|
||||
if (a->qname[0] != '\0') {
|
||||
print_queue(a, level, bw, 0, qopts);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user