MFC: rev. 1.20 sys/netipsec/keysock.c
MFC: rev. 1.20 sys/netipsec/keysock.c

    Move the priv check before the malloc call for so_pcb.
    In case attach fails because of the priv check we leaked the
    memory and left so_pcb as fodder for invariants.

Approved by: re (kensmith)

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase