Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/wh_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ int wh_CommClient_SendRequest(whCommClient* context, uint16_t magic,
int rc = 0;

if ( (context == NULL) ||
(context->hdr == NULL) ||
(context->initialized == 0) ||
(context->transport_cb == NULL) ||
(context->transport_cb->Send == NULL)) {
Expand Down Expand Up @@ -146,6 +147,7 @@ int wh_CommClient_RecvResponse(whCommClient* context,
uint16_t data_size = 0;

if ( (context == NULL) ||
(context->hdr == NULL) ||
(context->initialized == 0) ||
(context->transport_cb == NULL) ||
(context->transport_cb->Recv == NULL)){
Expand Down Expand Up @@ -257,6 +259,7 @@ int wh_CommServer_RecvRequest(whCommServer* context,
uint16_t data_size = 0;

if ( (context == NULL) ||
(context->hdr == NULL) ||
(context->initialized == 0) ||
(context->transport_cb == NULL) ||
(context->transport_cb->Recv == NULL)) {
Expand Down Expand Up @@ -298,6 +301,7 @@ int wh_CommServer_SendResponse(whCommServer* context,
int rc = 0;

if ( (context == NULL) ||
(context->hdr == NULL) ||
(context->initialized == 0) ||
(context->transport_cb == NULL) ||
(context->transport_cb->Send == NULL)){
Expand Down Expand Up @@ -350,4 +354,4 @@ int wh_CommServer_Cleanup(whCommServer* context)
return rc;
}

#endif /* WOLFHSM_CFG_ENABLE_SERVER */
#endif /* WOLFHSM_CFG_ENABLE_SERVER */