diff --git a/net/sctp/auth.c b/net/sctp/auth.c index 5b537613946fcaaabcb2716b74b5a7188a828142..2bd8c80bd85fb39b786d7a401bfe9cf4047c6d4f 100644 --- a/net/sctp/auth.c +++ b/net/sctp/auth.c @@ -515,6 +515,7 @@ int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp) out_err: /* Clean up any successful allocations */ sctp_auth_destroy_hmacs(ep->auth_hmacs); + ep->auth_hmacs = NULL; return -ENOMEM; }