Skip to content

Commit

Permalink
camessage.c: Use INVALID_DB_REQ() macro instead of directly compare
Browse files Browse the repository at this point in the history
against LAST_BUFFER_TYPE
  • Loading branch information
jesusvasquez333 committed Mar 11, 2021
1 parent 60b5d04 commit 7eafd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/database/src/ioc/rsrv/camessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ static int write_notify_action ( caHdrLargeArray *mp, void *pPayload,
return RSRV_ERROR;
}

if (mp->m_dataType > LAST_BUFFER_TYPE) {
if ( INVALID_DB_REQ(mp->m_dataType) ) {
log_header ("bad put notify data type", client, mp, pPayload, 0);
putNotifyErrorReply (client, mp, ECA_BADTYPE);
return RSRV_ERROR;
Expand Down

0 comments on commit 7eafd07

Please sign in to comment.