8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
16 lines
565 B
Diff
16 lines
565 B
Diff
Index: pkg-ipsec-tools/src/racoon/gssapi.c
|
|
===================================================================
|
|
--- pkg-ipsec-tools.orig/src/racoon/gssapi.c
|
|
+++ pkg-ipsec-tools/src/racoon/gssapi.c
|
|
@@ -192,6 +192,11 @@ gssapi_init(struct ph1handle *iph1)
|
|
gss_name_t princ, canon_princ;
|
|
OM_uint32 maj_stat, min_stat;
|
|
|
|
+ if (iph1->rmconf == NULL) {
|
|
+ plog(LLV_ERROR, LOCATION, NULL, "no remote config\n");
|
|
+ return -1;
|
|
+ }
|
|
+
|
|
gps = racoon_calloc(1, sizeof (struct gssapi_ph1_state));
|
|
if (gps == NULL) {
|
|
plog(LLV_ERROR, LOCATION, NULL, "racoon_calloc failed\n");
|