From 86a42c8b3aa5ef4618a0501be88ae40dea58c93a Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 1 Jun 2015 19:39:13 -0700 Subject: [PATCH] MULTIPATH TESTS: pass the right pointer back when copying a des Else we will double free and crash. Signed-off-by: Ronnie Sahlberg --- test-tool/iscsi-multipath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/iscsi-multipath.c b/test-tool/iscsi-multipath.c index 37ccc27..db20d4c 100644 --- a/test-tool/iscsi-multipath.c +++ b/test-tool/iscsi-multipath.c @@ -87,7 +87,7 @@ mpath_des_copy(struct scsi_inquiry_device_designator *des, return -1; } memcpy(des_cp->designator, des->designator, des->designator_length); - *_des_cp = des; + *_des_cp = des_cp; return 0; }