diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index a721d7b17f300ed4e40c9ac1aee85b7ddb2be780..0936d194bc6e618e867e0c1137271a41b2057b34 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -11925,7 +11925,7 @@ static int dahdi_r2_set_context(struct dahdi_mfcr2 *r2_link, const struct dahdi_ } } /* Save the configuration used to setup this link */ - memcpy(&r2_link->conf, conf, sizeof(r2_link->conf)); + memcpy(&r2_link->conf, &conf->mfcr2, sizeof(r2_link->conf)); return 0; } #endif