aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 18:41:44 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 18:44:20 -0400
commit5fccc5b52ee07d07a74ce53c6f174bff81e26a16 (patch)
tree26b79ffc837f12c1c9e43f111b7cb580369948d9 /net/sunrpc
parent8313164c36473193c8034de643dc32f35a22bf59 (diff)
SUNRPC: gss_alloc_msg - choose _either_ a v0 message or a v1 message
Add the missing 'break' to ensure that we don't corrupt a legacy 'v0' type message by appending the 'v1'. Cc: Bruce Fields <bfields@fieldses.org> Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index 084656671d6e..cc24323d3045 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -482,6 +482,7 @@ gss_alloc_msg(struct gss_auth *gss_auth,
482 switch (vers) { 482 switch (vers) {
483 case 0: 483 case 0:
484 gss_encode_v0_msg(gss_msg); 484 gss_encode_v0_msg(gss_msg);
485 break;
485 default: 486 default:
486 gss_encode_v1_msg(gss_msg, service_name, gss_auth->target_name); 487 gss_encode_v1_msg(gss_msg, service_name, gss_auth->target_name);
487 }; 488 };