summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-08-02 11:00:54 -0700
committerJoshua M. Clulow <josh@sysmgr.org>2018-08-02 16:11:45 -0700
commit06307114472bd8aad5ff18ccdb8e25f128ae6652 (patch)
tree2594548a47a033e99d95d61aa6240679044f2375
parent4b82800c9ef42549e376c68ab63eb6d8228449ce (diff)
downloadillumos-joyent-06307114472bd8aad5ff18ccdb8e25f128ae6652.tar.gz
9180 gss_mechs/mech_krb5: this statement may fall through
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r--usr/src/lib/gss_mechs/mech_krb5/krb5/krb/chpw.c3
-rw-r--r--usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/unparse.c2
-rw-r--r--usr/src/uts/common/gssapi/mechs/krb5/mech/k5unseal.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/chpw.c b/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/chpw.c
index a97c39dbe3..ba7f562324 100644
--- a/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/chpw.c
+++ b/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/chpw.c
@@ -546,7 +546,8 @@ krb5int_setpw_result_code_string( krb5_context context, int result_code, const c
*code_string = "Initial password required";
break;
case 0:
- *code_string = "Success";
+ *code_string = "Success";
+ break;
default:
*code_string = "Password change failed";
break;
diff --git a/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/unparse.c b/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/unparse.c
index edec335118..99eb271a6e 100644
--- a/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/unparse.c
+++ b/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/unparse.c
@@ -132,7 +132,7 @@ copy_component_quoting(char *dest, const krb5_data *src, int flags)
*q++ = *cp;
break;
}
- /*LINTED*/
+ /* FALLTHROUGH */
case COMPONENT_SEP:
case '\\':
*q++ = '\\';
diff --git a/usr/src/uts/common/gssapi/mechs/krb5/mech/k5unseal.c b/usr/src/uts/common/gssapi/mechs/krb5/mech/k5unseal.c
index 339a209b29..44bc227cba 100644
--- a/usr/src/uts/common/gssapi/mechs/krb5/mech/k5unseal.c
+++ b/usr/src/uts/common/gssapi/mechs/krb5/mech/k5unseal.c
@@ -500,6 +500,7 @@ kg_unseal_v1(context, minor_status, ctx, ptr, bodysize, message_buffer,
code = memcmp(md5cksum.contents, ptr+14, 8);
/* Falls through to defective-token?? */
+ /* FALLTHROUGH */
default:
*minor_status = 0;