]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
check if alg_info_esp exists
authorElmar Vonlanthen <elmar.vonlanthen@united-security-providers.ch>
Tue, 24 Nov 2009 15:15:12 +0000 (16:15 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 24 Nov 2009 15:15:12 +0000 (16:15 +0100)
src/pluto/kernel_alg.c

index a2bb51cdd2dc17978e14a753c62d259955121945..0429615f7dfd54f817b6df8e3cd3aaaf6a9fe914 100644 (file)
@@ -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) :
                                                        "<Phase1>" : "<N/A>";