CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2018/06/04 06:22:45

Modified files:
        sys/net        : pf.c 

Log message:
The function pf_create_state() calls pf_set_protostate() before
pf_state_insert(), so the state key has not been set.  When inlining,
the compiler recognized the NULL pointer dereference in
s->key[PF_SK_STACK]->proto and optimized it away.  But if pf.c was
compiled with -fno-inline, the system crashed during boot.  Add a
NULL check in pf_set_protostate() to handle the situation when the
function is called.
OK sashan@ henning@

Reply via email to