Merge tag 'riscv-for-linus-5.13-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / net / sctp / sm_make_chunk.c
index f77484d..5f9a7c0 100644 (file)
@@ -3147,7 +3147,7 @@ static __be16 sctp_process_asconf_param(struct sctp_association *asoc,
                 * primary.
                 */
                if (af->is_any(&addr))
-                       memcpy(&addr.v4, sctp_source(asconf), sizeof(addr));
+                       memcpy(&addr, sctp_source(asconf), sizeof(addr));
 
                if (security_sctp_bind_connect(asoc->ep->base.sk,
                                               SCTP_PARAM_SET_PRIMARY,
@@ -3217,7 +3217,7 @@ bool sctp_verify_asconf(const struct sctp_association *asoc,
                                return false;
                        break;
                default:
-                       /* This is unkown to us, reject! */
+                       /* This is unknown to us, reject! */
                        return false;
                }
        }