Advertisement
Guest User

mech_eap fixes

a guest
Apr 5th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.32 KB | None | 0 0
  1. diff --git a/mech_eap/init_sec_context.c b/mech_eap/init_sec_context.c
  2. index f6d7269..00b4189 100644
  3. --- a/mech_eap/init_sec_context.c
  4. +++ b/mech_eap/init_sec_context.c
  5. @@ -662,7 +662,7 @@ eapGssSmInitGssReauth(OM_uint32 *minor,
  6.       * context credential does not currently have the reauth creds.
  7.       */
  8.      if (GSSEAP_SM_STATE(ctx) == GSSEAP_STATE_INITIAL) {
  9. -        if (!gssEapCanReauthP(cred, target, timeReq))
  10. +        if (!gssEapCanReauthP(cred, (gss_name_t)target, timeReq))
  11.              return GSS_S_CONTINUE_NEEDED;
  12.  
  13.          ctx->flags |= CTX_FLAG_KRB_REAUTH;
  14. @@ -674,7 +674,7 @@ eapGssSmInitGssReauth(OM_uint32 *minor,
  15.  
  16.      GSSEAP_ASSERT(cred != GSS_C_NO_CREDENTIAL);
  17.  
  18. -    major = gssEapMechToGlueName(minor, target, &mechTarget);
  19. +    major = gssEapMechToGlueName(minor, (gss_name_t)target, &mechTarget);
  20.      if (GSS_ERROR(major))
  21.          goto cleanup;
  22.  
  23. diff --git a/mech_eap/util_reauth.c b/mech_eap/util_reauth.c
  24. index 40e3de1..cd85a53 100644
  25. --- a/mech_eap/util_reauth.c
  26. +++ b/mech_eap/util_reauth.c
  27. @@ -1097,7 +1097,7 @@ OM_uint32
  28.  gssReleaseName(OM_uint32 *minor,
  29.                 gss_name_t *name)
  30.  {
  31. -    if (gssReleaseName == NULL) {
  32. +    if (gssReleaseNameNext == NULL) {
  33.          *minor = GSSEAP_NO_MECHGLUE_SYMBOL;
  34.          return GSS_S_UNAVAILABLE;
  35.      }
  36. --
  37. 2.7.4.1.g5468f9e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement