Probably not, as hip_xfrmapi_nl_ipsec is static to xfrmapi.c ;)
But ok, another option is to re-organize the initialization so that that variable gets set before it is possible to abort the initialization. Basically move the hip_xfrm_set_nl_ipsec() call to somewhere before the first HIP_IFEL.
.. I'll attach a patch now that I actually tried it out.
Probably not, as hip_xfrmapi_ nl_ipsec is static to xfrmapi.c ;)
But ok, another option is to re-organize the initialization so that that variable gets set before it is possible to abort the initialization. Basically move the hip_xfrm_ set_nl_ ipsec() call to somewhere before the first HIP_IFEL.
.. I'll attach a patch now that I actually tried it out.