]> err.no Git - linux-2.6/commitdiff
[AF_RXRPC]: Add a missing goto
authorDavid Howells <dhowells@redhat.com>
Fri, 7 Dec 2007 12:31:47 +0000 (04:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2007 12:31:47 +0000 (04:31 -0800)
Add a missing goto to error handling in the RXKAD security module for
AF_RXRPC.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/rxkad.c

index e09a95aa68ff7acf6cd98cf41947419a51c9f2d4..8e69d6993833be8c1aa9ceaaab8cdacd11b1248f 100644 (file)
@@ -1021,6 +1021,7 @@ static int rxkad_verify_response(struct rxrpc_connection *conn,
 
        abort_code = RXKADINCONSISTENCY;
        if (version != RXKAD_VERSION)
+               goto protocol_error;
 
        abort_code = RXKADTICKETLEN;
        if (ticket_len < 4 || ticket_len > MAXKRB5TICKETLEN)