net: sctp: prevent writes to cookie_hmac_alg from accessing invalid memory