In stroke counters, check if we have an IKE_SA before getting the name from it
authorMartin Willi <martin@revosec.ch>
Tue, 19 Mar 2013 10:20:35 +0000 (11:20 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 19 Mar 2013 10:20:35 +0000 (11:20 +0100)
commit41131528a94569fe0281eff9b1be4120b7cc31f4
tree009e12417e58310e8c24af3c3965fe20cdccb620
parenta0f1c4cf29f344729bfb29bd01afe1bf1a4fc2c1
In stroke counters, check if we have an IKE_SA before getting the name from it

Fixes a segfault when receiving an invalid IKE SPI, where we don't have an
IKE_SA for the raised alert.
src/libcharon/plugins/stroke/stroke_counter.c