Skip to content

Commit

Permalink
prov/verbs_nd: Resolve regression in user data retrieval
Browse files Browse the repository at this point in the history
Fixes a regression introduced in commit da40f10, specifically occurring
when a call to `GetPrivateData` correctly returns `ND_BUFFER_OVERFLOW`.

Signed-off-by: Kajetan Świerk <k0zmo@outlook.com>
  • Loading branch information
k0zmo authored and j-xiong committed Jan 4, 2024
1 parent ff8478a commit 0a130b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/verbs/src/windows/verbs_nd_ov.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void nd_get_connection_data(IND2Connector *connector, struct nd_cm_event *event)
FI_LOG_EP_CTRL, "IND2Connector::GetPrivateData: hr=0x%08lx\n",
hr);

if (SUCCEEDED(hr) && len) {
if ((SUCCEEDED(hr) || hr == ND_BUFFER_OVERFLOW) && len) {
event->event.param.conn.private_data_len = (uint8_t)len;
event->event.param.conn.private_data = malloc(len);
if (event->event.param.conn.private_data) {
Expand Down

0 comments on commit 0a130b7

Please sign in to comment.