Skip to content

Commit

Permalink
Update src/impl/dtlstransport.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
Sean-Der and paullouisageneau authored Mar 30, 2023
1 parent 289204b commit d919cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/dtlstransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ int DtlsTransport::ReadCallback(void *ctx, unsigned char *buf, size_t len) {

auto bufMin = std::min(len, size_t(message->size()));
std::memcpy(buf, message->data(), bufMin);
return int(len);
return int(bufMin);
}

// Closed
Expand Down

0 comments on commit d919cbf

Please sign in to comment.