pf: fold if (s != NULL) and if (s) into one block
Sponsored by: Rubicon Communications, LLC ("Netgate")