Skip to content

Commit

Permalink
libosdp: Permit REPLY_COM response for CMD_COMSET
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Jan 6, 2024
1 parent 2263ce3 commit 5ea0bb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osdp_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ static bool cp_check_online_response(struct osdp_pd *pd)
/* Otherwise, we permit only expected responses */
switch (pd->cmd_id) {
case CMD_FILETRANSFER: return pd->reply_id == REPLY_FTSTAT;
case CMD_COMSET: return pd->reply_id == REPLY_COM;
default:
LOG_ERR("Unexpected respose: CMD: %s(%02x) REPLY: %s(%02x)",
osdp_cmd_name(pd->cmd_id), pd->cmd_id,
Expand Down

0 comments on commit 5ea0bb7

Please sign in to comment.