diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-06-06 11:11:52 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-08-01 09:55:27 +0200 |
commit | 8645c9d72011bfeae72ccecd3edd0f9b295c59c6 (patch) | |
tree | eef2015473744e60eeec429eeb44ec98bf12167a /ipsec-tools/src/racoon/gssapi.c | |
parent | Import ipsec-tools 0.8.2. (diff) | |
download | rtems-libbsd-8645c9d72011bfeae72ccecd3edd0f9b295c59c6.tar.bz2 |
ipsec-tools: Apply patches from FreeBSD ports.
Source: https://svnweb.freebsd.org/ports/head/security/ipsec-tools/files/ revision 468617.
Diffstat (limited to 'ipsec-tools/src/racoon/gssapi.c')
-rw-r--r-- | ipsec-tools/src/racoon/gssapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipsec-tools/src/racoon/gssapi.c b/ipsec-tools/src/racoon/gssapi.c index e64b2015..7edcf4f6 100644 --- a/ipsec-tools/src/racoon/gssapi.c +++ b/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"); |