sctp: fix sctp_auth_init_hmacs() error path
[linux-2.6-microblaze.git] / net / sctp / auth.c
index 9e289c7..7e59d8a 100644 (file)
@@ -494,6 +494,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;
 }