summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
authorRobbie Harwood <rharwood@redhat.com>2016-09-23 18:42:26 +0000
committerSimo Sorce <simo@redhat.com>2016-09-26 14:38:43 -0400
commit54171b1aa2d4c51b57dca80fd6f8e4cb072b52e6 (patch)
tree2dd5064f94b05c09a84aa3211ff65d02660c7fa6 /proxy/src
parent4ac6451491e8d4dfc4e371eee4c162b297283c0a (diff)
Fix NULL deref in gssi_release_name()
Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/mechglue/gpp_import_and_canon_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/src/mechglue/gpp_import_and_canon_name.c b/proxy/src/mechglue/gpp_import_and_canon_name.c
index 7842bcc..745be20 100644
--- a/proxy/src/mechglue/gpp_import_and_canon_name.c
+++ b/proxy/src/mechglue/gpp_import_and_canon_name.c
@@ -253,7 +253,7 @@ OM_uint32 gssi_release_name(OM_uint32 *minor_status,
GSSI_TRACE();
name = (struct gpp_name_handle *)*input_name;
- if (!name->local && !name->remote) {
+ if (!name || (!name->local && !name->remote)) {
return GSS_S_BAD_NAME;
}