]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
SUNRPC: gss_alloc_msg - choose _either_ a v0 message or a v1 message
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 22:41:44 +0000 (18:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:28:09 +0000 (11:28 -0800)
commit 5fccc5b52ee07d07a74ce53c6f174bff81e26a16 upstream.

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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/auth_gss/auth_gss.c

index 084656671d6ee4cebc6220ad0d92bae654497882..cc24323d30450c16a8cf07869eadfa3221c14bd6 100644 (file)
@@ -482,6 +482,7 @@ gss_alloc_msg(struct gss_auth *gss_auth,
        switch (vers) {
        case 0:
                gss_encode_v0_msg(gss_msg);
+               break;
        default:
                gss_encode_v1_msg(gss_msg, service_name, gss_auth->target_name);
        };