From: Elmar Vonlanthen Date: Tue, 24 Nov 2009 15:15:12 +0000 (+0100) Subject: check if alg_info_esp exists X-Git-Tag: 4.3.6~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=792876ff8780bafaf126e248849318406b7330cb;p=thirdparty%2Fstrongswan.git check if alg_info_esp exists --- diff --git a/src/pluto/kernel_alg.c b/src/pluto/kernel_alg.c index a2bb51cdd2..0429615f7d 100644 --- a/src/pluto/kernel_alg.c +++ b/src/pluto/kernel_alg.c @@ -506,7 +506,7 @@ void kernel_alg_show_connection(connection_t *c, const char *instance) enum_show(&auth_alg_names, st->st_esp.attrs.auth); pfsgroup_name = (c->policy & POLICY_PFS) ? - (c->alg_info_esp->esp_pfsgroup) ? + (c->alg_info_esp && c->alg_info_esp->esp_pfsgroup) ? enum_show(&oakley_group_names, c->alg_info_esp->esp_pfsgroup) : "" : "";