mgmt: mcumgr: Fix missed variable rename

Fixes accesses a renamed variable when a specific Kconfig is
active that would cause a compile error.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2022-11-22 07:59:22 +00:00 committed by Carles Cufí
commit 9831b320f2

View file

@ -210,7 +210,7 @@ static int smp_handle_single_req(struct smp_streamer *streamer, const struct smp
/* Process the request and write the response payload. */
rc = smp_handle_single_payload(streamer, req_hdr, handler_found);
if (rc != 0) {
*rsn = MGMT_CTXT_RC_RSN(cbuf);
*rsn = MGMT_CTXT_RC_RSN(streamer);
return rc;
}