Skip to content

Commit 3476c8b

Browse files
dhowellskuba-moo
authored andcommitted
rxrpc: Fix error handling in rxgk_extract_token()
Fix a missing bit of error handling in rxgk_extract_token(): in the event that rxgk_decrypt_skb() returns -ENOMEM, it should just return that rather than continuing on (for anything else, it generates an abort). Fixes: 64863f4 ("rxrpc: Fix unhandled errors in rxgk_verify_packet_integrity()") Closes: https://sashiko.dev/#/patchset/[email protected] Signed-off-by: David Howells <[email protected]> cc: Marc Dionne <[email protected]> cc: Jeffrey Altman <[email protected]> cc: Simon Horman <[email protected]> cc: [email protected] cc: [email protected] Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0422e7a commit 3476c8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/rxrpc/rxgk_app.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ int rxgk_extract_token(struct rxrpc_connection *conn, struct sk_buff *skb,
245245
if (ret != -ENOMEM)
246246
return rxrpc_abort_conn(conn, skb, ec, ret,
247247
rxgk_abort_resp_tok_dec);
248+
return ret;
248249
}
249250

250251
ret = conn->security->default_decode_ticket(conn, skb, ticket_offset,

0 commit comments

Comments
 (0)