Skip to content

Commit e490d63

Browse files
authored
fix: populate blob len on partial md (#970) (#976)
Signed-off-by: Alexandre Milesi <[email protected]>
1 parent de6a874 commit e490d63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bindings/rust/wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ nixl_capi_get_local_partial_md(nixl_capi_agent_t agent,
221221
}
222222
// Copy the data
223223
memcpy(*data, blob.data(), blob.size());
224+
*len = blob.size();
224225
return ret == NIXL_SUCCESS ? NIXL_CAPI_SUCCESS : NIXL_CAPI_ERROR_BACKEND;
225226
}
226227
catch (...) {

0 commit comments

Comments
 (0)