Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 1730ab4a13ea20dfe1f6f2020bf1d26c > files > 9

ipsec-tools-0.8.1-7.1.mga6.src.rpm

--- ipsec-tools-0.8.1/src/racoon/gssapi.c.orig	2015-05-20 11:33:24.227883339 -0400
+++ ipsec-tools-0.8.1/src/racoon/gssapi.c	2015-05-20 11:32:45.327345510 -0400
@@ -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");