Skip to content

Commit

Permalink
gssapi.c: squash GCC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison authored and brong committed Jan 29, 2018
1 parent 9079ba0 commit 3f420d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/gssapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ static int gssapi_get_ssf(context_t *text, sasl_ssf_t *mech_ssf)
case GSS_S_UNAVAILABLE:
/* Not supported by the library, fallback to default */
goto fallback;

case GSS_S_COMPLETE:
if ((bufset->count != 1) || (bufset->elements[0].length != 4)) {
/* Malformed bufset, fail */
Expand All @@ -712,11 +713,15 @@ static int gssapi_get_ssf(context_t *text, sasl_ssf_t *mech_ssf)
(void)gss_release_buffer_set(&min_stat, &bufset);
*mech_ssf = ntohl(ssf);
return SASL_OK;

case GSS_S_FAILURE:
/* Not supported by Heimdal, fallback to default */
if (min_stat == 0) {
goto fallback;
}

GCC_FALLTHROUGH

default:
if (GSS_ERROR(maj_stat)) {
sasl_gss_seterror(text->utils,maj_stat,min_stat);
Expand Down

0 comments on commit 3f420d3

Please sign in to comment.