summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2012-08-29 18:51:11 +0200
committerGünther Deschner <gdeschner@redhat.com>2012-08-29 19:25:32 +0200
commit118965a14418cb209fbb55856d473aeaa6d74db4 (patch)
treee66cf6c48509245c8ec3548a2a1c53a09689a49c
parent065706f2c23027f30695b367d8e1c27fd9b4f2e3 (diff)
downloadgss-proxy-118965a14418cb209fbb55856d473aeaa6d74db4.tar.gz
gss-proxy-118965a14418cb209fbb55856d473aeaa6d74db4.tar.xz
gss-proxy-118965a14418cb209fbb55856d473aeaa6d74db4.zip
Add context pointer check to gpm_verify_mic() as well.
-rw-r--r--proxy/src/client/gpm_verify_mic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proxy/src/client/gpm_verify_mic.c b/proxy/src/client/gpm_verify_mic.c
index 8b438ac..c42be91 100644
--- a/proxy/src/client/gpm_verify_mic.c
+++ b/proxy/src/client/gpm_verify_mic.c
@@ -44,6 +44,10 @@ OM_uint32 gpm_verify_mic(OM_uint32 *minor_status,
memset(&uarg, 0, sizeof(union gp_rpc_arg));
memset(&ures, 0, sizeof(union gp_rpc_res));
+ if (!context_handle) {
+ return GSS_S_CALL_INACCESSIBLE_READ;
+ }
+
/* format request */
/* NOTE: the final free will also release the old context */
arg->context_handle = *context_handle;