diff options
| author | Robbie Harwood <rharwood@redhat.com> | 2016-09-23 18:42:31 +0000 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2016-09-26 14:38:46 -0400 |
| commit | fca9a5adb76622015bb64d03b038ccdbf4525010 (patch) | |
| tree | 3c3177609113653371958d93890cdd375db74c8a | |
| parent | 54171b1aa2d4c51b57dca80fd6f8e4cb072b52e6 (diff) | |
Fix NULL deref in gssi_release_cred()
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Merges 32
| -rw-r--r-- | proxy/src/mechglue/gpp_creds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/mechglue/gpp_creds.c b/proxy/src/mechglue/gpp_creds.c index ff1dfda..2818dd7 100644 --- a/proxy/src/mechglue/gpp_creds.c +++ b/proxy/src/mechglue/gpp_creds.c @@ -529,7 +529,9 @@ OM_uint32 gssi_release_cred(OM_uint32 *minor_status, GSSI_TRACE(); - if (*cred_handle == GSS_C_NO_CREDENTIAL) { + if (cred_handle == NULL) { + return GSS_S_NO_CRED | GSS_S_CALL_INACCESSIBLE_READ; + } else if (*cred_handle == GSS_C_NO_CREDENTIAL) { *minor_status = 0; return GSS_S_COMPLETE; } |
