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:
parent
36b179c43b
commit
9831b320f2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue