Skip to content

Commit 1dc7960

Browse files
committed
fabrics: correctly set host traddr and iface
nvmf_context_set_connection is not correctly assigning the traddr and iface. Signed-off-by: Daniel Wagner <[email protected]>
1 parent a2e1b83 commit 1dc7960

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libnvme/src/nvme/fabrics.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ int nvmf_context_set_connection(struct nvmf_context *fctx,
270270
fctx->transport = transport;
271271
fctx->traddr = traddr;
272272
fctx->trsvcid = trsvcid;
273-
fctx->host_traddr = host_iface;
273+
fctx->host_traddr = host_traddr;
274+
fctx->host_iface = host_iface;
274275

275276
return 0;
276277
}

0 commit comments

Comments
 (0)